• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

a css question

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I specified a:link{color:white} in an external stylesheet and linked it to the individual pages, but it's not working. Is this because the link is in a table? Does a table not recognize external style sheets?
Any suggestions?
thanks
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it will not work if you visted the link.
You might want to look into link,visited, and hover
here is an example I use on one of my pages.
.a {
display: block;
padding: 2px 2px 2px 5px;
border: 1px solid #000000;
width: 100px;
background-color: #336699;
}
.a:link, a:visited {
color: #FFFFFF;
text-decoration: none;
}
.a:hover {
border: 1px solid #000000;
background-color: #3388AA;
color: #FFFFFF;
}
 
Sheriff
Posts: 67754
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Small correction: no "." before the "a"...
 
reply
    Bookmark Topic Watch Topic
  • New Topic