SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: Colour Link Underlines probs
-
Apr 3, 2003, 05:45 #1
- Join Date
- Mar 2003
- Location
- UK
- Posts
- 245
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Colour Link Underlines probs
For the head of my site I have a line of links, instead of doing graphics for these links I have used a non-underlined link style with a different colour for the underline.
Having 2 css text styles each with a a:hover sub style, and using embeded <span> tags
Code:<div id="head-nav"> <span class="headnavtxt"> <a href="link.html" class="whitetext"><span class="headnavtxt">link</span></a></span> I <a href="link2.html" class="whitetext"><span class="headnavtxt">link2</span></a> </span> </div>
link to site
Link to CSS
edited to make the HTML more clearLast edited by mediaman_12; Apr 4, 2003 at 01:14.
-
Apr 3, 2003, 07:44 #2
Be sure that all id values (id="underlinestyle") have no spaces in them and don't start with either a number or an underscore).
Also be sure that you pseudo-classes are listed in the following order:
Code:a:link { ... } a:visited { ... } a:hover { ... } a:active { ... }
New Plastic Arts: Visual Communication | DesignateOnline
Mate went to NY and all he got me was this lousy signature
-
Apr 4, 2003, 01:06 #3
- Join Date
- Mar 2003
- Location
- UK
- Posts
- 245
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Well all the pseudo-classes are in the right order, nothing has spaces, underscores or numbers in the names, and it still don't work
.
I really dont want to go back to gifs, the client kept changing the names and order of pages, thats why I decided on the CSS route.
-
Apr 4, 2003, 03:05 #4
Originally Posted by mediaman_12
a:link {
color: #B22222;
text-decoration: none;
}
a:hover {
color: Red;
text-decoration: underline;
}
a:visited {
color: #B22222;
text-decoration: none;}
a:active {text-decoration: underline;}New Plastic Arts: Visual Communication | DesignateOnline
Mate went to NY and all he got me was this lousy signature
-
Apr 4, 2003, 03:12 #5
- Join Date
- Mar 2003
- Location
- UK
- Posts
- 245
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks for that, I must have mised the defaults. doh!
It works perfectly now.
Bookmarks