Pogledajte određenu poruku
Staro 24. 05. 2006.   #10
Dragan Babić
Designer guy
Wrote a book
 
Avatar Dragan Babić
 
Datum učlanjenja: 06.06.2005
Lokacija: Novi Sad
Poruke: 1.373
Hvala: 55
42 "Hvala" u 22 poruka
Dragan Babić će postati "faca" uskoro
Pošaljite poruku preko Skype™ za Dragan Babić
Default

Evo kako izgleda CSS kada pocnem "frisko":
Kôd:
html, body, form, form p, fieldset{
	margin:0;	padding:0;
	font: 62.5%/140% verdana, "trebuchet ms", arial, sans-serif; /* font size is equal to 10px now */
}

/* Neutralize styling: 
   Elements with a vertical margin: */
h1, h2, h3, h4, h5, h6, pre,
blockquote, ul, ol, dl, address{
	margin:1em 0;	padding:0;
}

p{
  margin:.7em 0; padding:0;
}

/* styles for headings */
h1, h2, h3, h4, h5, h6{
  text-align:left;
  clear:both;
}

/* links */
a:link{
  osobina:vrednost;
}
a:visited{
  osobina:vrednost;
}
a:focus{
  osobina:vrednost;
}
a:hover{
  osobina:vrednost;
}
a:active{
  osobina:vrednost;
}

/* Apply left margin:
   Only to the few elements that need it: */
li, blockquote, dd {
	margin-left: 1.5em;
}

/* Miscellaneous conveniences: */
form label {
	cursor: default;
}
fieldset {
	border: none;
}
legend{
  display:none;
}

/* Form field text-scaling and indication for user's current position */
form, input, select, textarea{
	font-size: 100%;
}

/* strip ugly borders from linked images */
a img{
  border:none;
}

/* Usefull classes */
.left{
  float:left;
  margin:0 1em 0 0;
}
.right{
  float:right;
  margin:0 0 0 1em;
}
.center{
  display:block;
  margin:1em auto;
}

/* those are the defaults, let's get on with the styling */
Znaci ovo mi je default CSS templet sa kojim pocinjem rad na svakom projektu.
Dragan Babić je offline   Odgovorite uz citat