|
Posted by Ben C on March 30, 2008, 5:32 pm
Please log in for more thread options > How do I override the usage of a CSS declaration that's used in a
> different way? That is, I want to use the <a..../a> in 2 ways:
> initially as horizontal (menu) links, but later as a link to a document
> (Word, PDF, etc.). Following is code that illustrates what I'm trying
> to do:
Use classes.
a.foo { color: black }
a.bar { color: red }
<a class="foo">...
<a class="bar">...
>
><style type="text/css">
> a {width:9em; text-decoration:none; color:black;
> background-color:orange; padding:0.2em 0.6em;}
No point setting width on an inline element-- it;s ignored.
|