![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
soni2926 (AT) yahoo (DOT) com writes: hi, what's the difference between using . or #? #switcher { ... } .chapter { ..... } is it preference, or the refer to different things? They are selectors that match element using quite different criteria. The first matches an element with id "switcher" (there can be only one per document). The second matches any element that has "chapter" in its class attribute. I don't mean to be rude, but this is a rather basic question and learning CSS by asking in a Usenet group is not likely to be very productive. You need a good book or tutorial. If you get on well with formal documents you can read it from the horse's mouth: http://www.w3.org/TR/2007/CR-CSS21-20070719/ and specifically http://www.w3.org/TR/2007/CR-CSS21-20070719/selector.html |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
HTMLDog seems quite good. i didn't understand why it suggested using border: 0... i thought it would be better if it is border: none. |
#5
| |||
| |||
|
|
HTMLDog seems quite good. i didn't understand why it suggested using border: 0... i thought it would be better if it is border: none. |
#6
| |||
| |||
|
|
liketofindoutwhy schrieb: HTMLDog seems quite good. i didn't understand why it suggested using border: 0... i thought it would be better if it is border: none. 'border: 0' sets another property (border-width) than 'border: none' (border-type). Both are covered by the 'border' shorthand. |
![]() |
| Thread Tools | |
| Display Modes | |
| |