OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
CSS Question
This page's ID:
11015
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Yup, Slime's method is what you would want for this particular scenario. As far as using classes - As opposed to an ID, which should only appear once in document (such as the above example - <div id="menu"> that ID applies to that one div, and *only* that div. It can't be used to refer to another div or other element further down the page), a CLASS can be applied to any number of elements. Say you want certain paragraphs to have a border around them, or a larger text-size (or whatever). You define a class in your CSS - .special-paragraph (<-- the '.' defines this in the CSS as a class) { border:#f00 1px solid; (<-- creates a red 1 pixel thick border for the element) } Then, in your HTML you specify the class as needed in the element's tag <p class="special-paragraph"> As often as you want to, to any element (not just <p> tags). [url=http://in-dented.com/asylum.php] [img]http://in-dented.com/sigs/indentsig.gif[/img] [/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »