Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [rgbworld] "category" style in CSS 2.99

Quote Reply
Re: [rgbworld] "category" style in CSS 2.99 In reply to
Remember there's a difference between the element id and class attributes. id's are usually only given to items on a page which will only occur once (eg. a header or footer) since an id can only be used once in html. classes are given to everything else. In css, you reference an id by #id_name, while with a class its .class_name. So in this case, category is a class, so to style it, you should use something like:
Code:
.category {
...
}

In Reply To:
I would like the category "Band Websites" (when used as a divider) to span the whole width of the page.
p elements are block elements so it already spans the entire width. You can put a border-bottom/top on it to make it divide things up.

In Reply To:
Besides, I do not understand what "dd", "dt", and "dl" are used for really?
They are definition lists

Adrian
Subject Author Views Date
Thread "category" style in CSS 2.99 rgbworld 1780 Mar 26, 2005, 9:34 AM
Post Re: [rgbworld] "category" style in CSS 2.99
brewt 1691 Mar 26, 2005, 1:14 PM