Cameron Taljard Posted December 15, 2006 Share Posted December 15, 2006 Hello, a php n00b needs your help.After changing a .css sytle sheet to suit my a needed color shceme the links become underlined when the color is changed. Anyone willing to to tell why.Any help appreciated.A sample of the link code:/*- Links */#primary a:hover, #primary a:visited:hover,.secondary a:hover, .secondary a:visited:hover { text-decoration: none; }h2 a:hover, h2 span a:hover { color: #3E281C !important; <!---27d to 3E281C --> text-decoration: none; } a{ color: #3E281C; <!---27d to 3E281C --> text-decoration: none; }.itemtext a:visited { color: #b41; }Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/30785-urls-underlined-after-color-change-please-help/ Share on other sites More sharing options...
Dragoon Posted December 15, 2006 Share Posted December 15, 2006 Looks like you put this topic in the wrong place. Try the CSS help forum (http://www.phpfreaks.com/forums/index.php/board,5.0.html)Edit: Looks like someone moved it. Quote Link to comment https://forums.phpfreaks.com/topic/30785-urls-underlined-after-color-change-please-help/#findComment-141919 Share on other sites More sharing options...
Cameron Taljard Posted December 15, 2006 Author Share Posted December 15, 2006 Thanks.It is .css in a php based site. So .css it is. I'll try there too. Quote Link to comment https://forums.phpfreaks.com/topic/30785-urls-underlined-after-color-change-please-help/#findComment-141923 Share on other sites More sharing options...
Danny Beckett Posted December 16, 2006 Share Posted December 16, 2006 Try putting this into your stylesheet:[code]a:visited{ text-decoration: none}[/code] Quote Link to comment https://forums.phpfreaks.com/topic/30785-urls-underlined-after-color-change-please-help/#findComment-142393 Share on other sites More sharing options...
DeathStar Posted December 16, 2006 Share Posted December 16, 2006 [quote]A sample of the link code:/*- Links */#primary a:hover, #primary a:visited:hover,.secondary a:hover, .secondary a:visited:hover { text-decoration: none; }h2 a:hover, h2 span a:hover { color: #3E281C !important; <!---27d to 3E281C --> text-decoration: none; } a{ color: #3E281C; <!---27d to 3E281C --> text-decoration: none; }.itemtext a:visited { color: #b41; }[/quote]make the hover option a color code not #primary Quote Link to comment https://forums.phpfreaks.com/topic/30785-urls-underlined-after-color-change-please-help/#findComment-142562 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.