Afficher un message
Vieux 30/03/2008, 22h32   #3
Ben C
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Overriding CSS Declaration for Different Use

On 2008-03-30, Michael R. Copeland <mrc2323@cox.net> wrote:
> 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-colorrange; padding:0.2em 0.6em;}


No point setting width on an inline element-- it;s ignored.
  Réponse avec citation
 
Page generated in 0,04226 seconds with 9 queries