PDA

View Full Version : Style not showing up in browser


jamesthecat
03-27-2003, 12:09 PM
I think there is probably a simple solution to this but I can't think of it!
The problem is I'm a applying a css style to a link eg
a.line:link {
text-decoration: underline;
color: #0099ff;
font-size: small;
When I view it in Dreamweaver the style shows up but not when I preview in explorer. There is no remote site so it's not like I need to upload it.

Thanks

ronaldb66
03-27-2003, 12:29 PM
You left out most of the code in which a lot of possible causes for your problem may lie; please supply the full code, both HTML and CSS, preferably online.

jamesthecat
03-27-2003, 12:57 PM
The code looks like this:
a href="orgs.htm" class="line">test</a

The funny thing is, I tested it with a blank link

a href="blank" class="line">test</a

and that worked fine.

ronaldb66
03-27-2003, 01:59 PM
Since you only supplied partial code once more I'll assume it's faultless ruling out the possibility of the problem lying there.
Have you declared a style for a.line by itself?

jamesthecat
03-27-2003, 03:10 PM
I worked it out in the end and if I'd sent you my style sheet in the first place I'm sure you would have got it too! Lesson learned.
I hadn't defined my a:visited and other a:visited classes. Duh.
Thanks for your time and patience!

JTC

ronaldb66
03-27-2003, 03:36 PM
James,

i meant while copying and pasting you left out bits and pieces like closing curly braces in your style def, opening and closing pointed braces in your HTML, etc. I can't determine whether that might be the source of the problem or just a copying ommision.
I'm glad you figured it out by yourself.