Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS Problems

Status
Not open for further replies.

Jimuniguy

Technical User
Mar 6, 2002
363
GB
Hi,

I have a style sheet where I have defined the A HREF tag which works just fine. However, some links are within a ordered list <ol> and <li> tags and these for some reason do not pick up the previous CSS style.

Is there anywhere I can make them pick up the CSS style. I can not define the <ol> and <li> tags as they are used through out the site on different pages.

Cheers

James
 
You have to add CSS classes to your links, this will make them look the same regardless where they are placed:

a.one:link { }
a.one:hover { }
a.one:visited { }
a.one:active { }

a.two:link { }
a.two:hover { }
a.two:visited { }
a.two:active { }

. . .
<a href=... class=&quot;one&quot;>
...
<li><a href=... class=&quot;two&quot;>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top