OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
Simple CSS Problem
This page's ID:
11114
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
You could also assign classes to the links and define the appropriate rules for each class. To give different styles to links in different areas of your page, you'll need to use the class attribute in the HTML and the appropriate selectors in the CSS. For example, consider the following HTML: [code] <!-- links in menu --> <a class=menulink href=...>....</a> <a class=menulink href=...>....</a> <!-- links in content area --> <a class=contentlink href=...>...</a> <a class=contentlink href=...>...</a> <!-- links in other area --> <a class=otherlink href=...>...</a> <a class=otherlink href=...>...</a> [/code] You could style these links as follows in your stylesheet: [code] a#menulink:link { color: #ffffff; } a#contentlink:link { color: #004400; } a#otherlink:link { color: #00cc00; } /* add definitions for a#menulink:hover, etc. */ [/code]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »