SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: two classes in the same tag ?
-
Feb 4, 2002, 01:28 #1
two classes in the same tag ?
could somebody please help me on this? i intend to make another set of rollover link for my navigation panel. the navigation panel already has another class "button". how would i combine both classes into a same tag? i did refer to another thread but othan than the <span class=""> solution which doesn't work for me, there is no other solution. below are the css and html tag i created.
css:
.button {
border: 1 solid #A3A3D6;
height: 25; font-size: 11px;
text-align: center
}
A {
COLOR: white;
TEXT-DECORATION: underline
}
A:hover {
color: #a3a3d6;
TEXT-DECORATION: none
}
A:active .noline {
COLOR: white;
TEXT-DECORATION: none
}
A:hover .noline {
color: #a3a3d6;
TEXT-DECORATION: none
}
html tag:
<td class="button"><b><a href="index.html">Home</a></b></td>
* what i wanna do is to make the link "home" an un-underlined link. the element A {text-decoration: underline} has already overwritten every link.
thanks.
-
Feb 4, 2002, 02:46 #2
- Join Date
- Jul 2001
- Location
- The Netherlands
- Posts
- 2,617
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Code:a.button:hover {text-decoration: none;}
.
-
Feb 4, 2002, 03:59 #3
thanks !
As you can see, classes can be applied to <a>...</a> - tags as well. I think that should solve your problem .
i didn't realize it until u pointed it out.
Bookmarks