Why # in CSS?
Why # in CSS?
Out of context: Reply #15
- Started
- Last post
- 33 Responses
- DutchBoy0
.class
#idid is used for unique elements on a page. usually there's only one element on a page with a particular #id.. for instance #logo
if the element with an id has similar qualities as some class elements on a page you can use both #id and .class in the same tag.
for intstance if #logo has the same border as a textblock you can use both #logo and .textblock in that element..