css links
im having trouble with CSS links...how can i do them with 2 or more classes? cuz like when i try and do them, one class is used for the whole page? thanks in advance.
Login |
css linkscss linksCurrently viewing this thread: 1 (0 members and 1 guests) DevilsJim89Status: Offline!
css links im having trouble with CSS links...how can i do them with 2 or more classes? cuz like when i try and do them, one class is used for the whole page? thanks in advance. If you want to make a specific link special then you can use id instead of class. In your css instead of using .whatever for classes you can use #whatever for id tags and it only relates to the specific link that you have it set for. If you don't want to be that specific then you can simple create different classes that you'd like to use for each link. For instance, you want all the links in your navigation to have certain properties, then in your css you can use a.nav to define the properties for those links, and say in your news you want them to be a different style then you can use a.news in your css.
Hope that helps. ___________________
DevilsJim89Status: Offline!
i know how to do that but like heres my code...i think something is wrong... <style type="text/css"> .nav <a class="nav" href="index.html">index</a> doesnt work Try <style type="text/css"> .nav a:active{text-decoration:none; color:White;} .content a:active{text-decoration:none; color:navy;} I added the class name infront of the CSS entries, should work. ___________________ DevilsJim89Status: Offline!
nope still not good i even tried this... <style type="text/css"> .nav a:active{text-decoration:none; color:White;} .content a:active{text-decoration:none; color:navy;} btw im running MS IE 6.0 SP1 on WinXP Pro DevilsJim89Status: Offline!
nevermind i fixed it. thanks. Last edited by DevilsJim89, August 2nd, 2003 04:53 PM (Edited 1 times) |
Copyright ©1999-2009 Neverside. All rights reserved.
Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach
NeverAPI generated this page in 0.0077 seconds.