SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: Is this valid?
-
Oct 15, 2004, 06:38 #1
- Join Date
- Sep 2002
- Location
- Atlanta, GA
- Posts
- 562
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Is this valid?
Is something like this valid CSS?
.linkleft a:link{
color: #5c1d07;
font-family: verdana;
font-size: 9pt;
text-decoration: underline;
}
.linkleft a:visited{
color: #5c1d07;
font-family: verdana;
font-size: 9pt;
text-decoration: underline;
}
.linkleft a:hover{
color: #B4370E;
font-family: verdana;
font-size: 9pt;
text-decoration: underline;
}
-------------------------------------
<a class="linkleft" href="blah.php">blah</a>
That's exactly what I'm using on my site and it's not working...
-
Oct 15, 2004, 06:45 #2
- Join Date
- Sep 2002
- Location
- Atlanta, GA
- Posts
- 562
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Problem fixed.
-
Oct 15, 2004, 07:03 #3
It would have to be a rule like "a.linkleft", not ".linkleft a" (just posting the solution for future reference if anyone comes upon this thread later; I know your problem has been solved).
-
Oct 15, 2004, 08:02 #4
- Join Date
- Jul 2003
- Location
- Springfield, MO
- Posts
- 1,867
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
The code in the first could have worked, you just needed:
<p class="linkleft"><a href="something.com">Something</a>
To apply it to a block level element or a container of some sort.
(Same point as Vinnie, just so people know the first CSS code is perfectly valid, just applied wrong)
-
Oct 15, 2004, 08:05 #5
- Join Date
- Sep 2002
- Location
- Atlanta, GA
- Posts
- 562
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by vgarcia
Bookmarks