OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
Another stupid Link-CSS question
This page's ID:
24935
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
CSS runs by an order of inheritance, starting from the HTML, down to the BODY and from there down through the heirarchy order of your page contents. If you're going to design your page on this basis your CSS must reflect it. Look at it like two cars, one a base modal and one a customised hotrod. The base model is your base tags, a, p, del, pre, code and so on. The customised hotrod is any classed or id'd versions of these. You have everything in your hotrod that you have in your base modal, plus some extras. That's the way it works, so say you want all links on your site, regardless of where they are, to have a full border, 1pixel wide, that is black, then in your base modal you'll define: [code] a { border: 1px black solid; } [/code] and now this will appear in all of your links unless you override it. Say, after a time, you decide that the links in your menu bar won't have this border, becuase it looks tacky, then you can define a class specifically for those links [code] a.menu-link { border: 0px; } [/code] and now the links you add this class to will not have that border but (and here's the important part) they will have [i]everything else[/i] that was definated in the base a, any height, font, colour, hover, visited or active styles (as applicable) until or unless you override thme with something else. This is the order of inheritance in CSS, and I suspect it is what's going screwy in your file, somehow, since you're combining both inheritance and heirarchy. I try to use either one or the other. I'll probably get around to trying ot rewrite your code sometime tomorrow, in the meantime, try it yourself. Pick a method and use it, you'll find something that works, I'm sure. [url=http://sunday.yarinareth.net][img]http://members.ii.net/~skaarjj/tempus.gif[/img][/url] Justice 4 [url=http://www.justice4pat.com]Pat Richard[/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »