Afficher un message
Vieux 30/03/2008, 22h26   #2
Stan Brown
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Overriding CSS Declaration for Different Use

Sun, 30 Mar 2008 13:50:25 -0700 from Michael R. Copeland <mrc2323
@cox.net>:
> 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.).


I don't understand -- a link is a link is a link. But if you want to
style two sets of links differently, give one set a class. If the
"exception" set is in a menu, you could put a class once on the top
level of the menu and then use
.classname a
in your CSS for the declarations you want to apply only to the menu
links.

> Following is code that illustrates what I'm trying
> to do:


Sigh.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't You:
http://diveintomark.org/archives/200..._wont__you
  Réponse avec citation
 
Page generated in 0,04865 seconds with 9 queries