free
This is our archive, please go to the main forum page for the latest discussions and news about free web hosting.


CSS Style Sheets

Mrh0ax
December 14th, 2000, 06:54
ok, i used this

A:active {
font-family: Verdana;
font-size: 10pt;
color: #FFFFFF;
text-decoration: none;
cursor: default
}

A:hover {
font-family: Verdana;
font-size: 10pt;
color: #FFFFFF;
text-decoration: underline;
cursor: default
}

A:link {
font-family: Verdana;
font-size: 10pt;
color: #FFFFFF;
text-decoration: none;
cursor: default
}

A:visited {
font-family: Verdana;
font-size: 10pt;
color: #FFFFFF;
text-decoration: none;
cursor: default
}

BODY {
font-family: Verdana;
font-size: 10pt;
background: #333333;
cursor: default
}

P {
font-family: Verdana;
font-size: 10pt;
margin-left: 5px;
margin-right: 5px
}

yet when i view my page all teh visited links stay with no underline, and when visited links are hovered they stay when no underline

how can i get it so when visited linsk are govered they get an underline?

thanks

acoolguy
December 14th, 2000, 21:31
I noticed a couple of things. The first of which is that the hover effect only works in IE and it sounds as if you are using NS or some other browser.

Secondly, I the only thing I see wrong with your source is that it is redundant. If you define the font-family, font-size, color, text-decoration, and cursor for the body tag, then anything with in the body tags will have these attributes also unless you change them directly with in the HTML. This is what I would do, although it really doesn't matter since both should work:

BODY {
font-family: Verdana;
font-size: 10pt;
color: #FFFFFF;
background: #333333;
cursor: default //don't know what you need this
}

P {
margin-left: 5px;
margin-right: 5px
}

A:link {
text-decoration: none;
}

A:active {
text-decoration: none;
}

A:visited {
text-decoration: none;
}

A:hover {
text-decoration: underline;
}

Hope this helps!

harrylmh
January 1st, 2001, 10:35
Hey Mrh0ax,
I've got the same problem as you. Visited links don't get the hover effects even though their color is the same as unvisited links and I don't know how to fix this.

CSS styles work in IE but I think they also work in NS6.

(<i>I know, this is a late reply</i>)

Thanks.





  
  News · Search free hosts · Free file hosting · Free image hosting · Reviews · Forums · Related Links · Advertising Info · Contact Us


Copyright © 1996-2008 Per Olof Sandholm. All rights reserved. Privacy Statement

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum