![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| ||||
| ||||
|
|
I'm learning how to use style sheets and so I've been looking how other people use them. I found a style file that set borders and padding to most of the std Tags to zero (sample below). Some get redefined again later. HTML { BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; BORDER-RIGHT-WIDTH: 0px } BODY { BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; BORDER-RIGHT-WIDTH: 0px } [ snipped the rest ] |
|
Apart from putting all the tags onto one line (comma seperated), This is a piece of code that's written badly. * { padding:0;border:0;margin:0; } |
|
why would you do this ? Is it to do with setting different client defaults ? |
|
weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html | webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html | zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html | `-------------------------------------------------- --<--@ ------------' |
#3
| |||
| |||
|
|
I'm learning how to use style sheets and so I've been looking how other people use them. |
#4
| |||
| |||
|
|
I'm learning how to use style sheets |
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |