View Full Version : Font Color Not Working
bourdelson 03-14-2004, 08:57 PM I've started to upload stuff onto my new web site, and when I went to check and make sure the image map worked, I noticed that all of my text was black, when it's supposed to be an orangish color.
http://www.freepgs.com/xerox/home.html
I checked the CSS for the pages that appear in my iframes [I have an external CSS page for that home page, then a different one for all of the subpages that appear in my iframe], and I have all of the text bases covered as far as it showing up orange. And my links, on mouseover, are supposed to switch over from having pink letters/orange underline to orange letters/pink underline, but only the letters are changing. I'm getting lost now, because I checked and rechecked all of my CSS and I can't see anything that could be affecting it.
Also, how do I get rid of that inset border on my iframe? I don't remember how. I put a solid border the same color as the background around it, but that didn't make it go away.
Thanks to anyone that can help me. :D
toolman 03-14-2004, 09:26 PM can we see the css for the text?
to get rid of the frame border, add this: border="0" frameborder="0"
bourdelson 03-14-2004, 09:30 PM Sure. Here's the part of my CSS that deals with my text/link stuff...
body
{ background: #FEB62A;
font-family: tahoma,verdana,arial,sans
-serif;
font-color: #FDE2AD;
font-size:8pt;
scrollbar-face-color : #FF05AA;
scrollbar-highlight-color : #FDE2AD;
scrollbar-3dlight-color : #FED6F1;
scrollbar-shadow-color : #F0BE5E;
scrollbar-darkshadow-color : #BC1A89;
scrollbar-track-color : #FF05AA;
scrollbar-arrow-color : #FED6F1;}
A:link
{ text-decoration: none; color:#FED6F1; border-bottom: 1px dashed #FDE2AD;}
A:visited
{ text-decoration: none; color:#FED6F1; }
A:active
{ text-decoration: none; color:#FED6F1; }
A:hover
{ text-decoration: none; color:#FDE2AD; border-left-right: 1px dashed #FED6F1;}
text,p,blockquote
{font-family: tahoma,verdana,arial,sans-serif;
color : #FDE2AD;
font-size:8pt;
}
I have the text,p,blockquote along with the body stuff because sometimes I align stuff to the right, and just want to be sure that it all stays the same. Also, I might change the properties for text that's aligned differently, I haven't decided yet.
Thanks a ton for the frameborder stuff. I can't believe I forgot that after using iframes so much. :D
toolman 03-14-2004, 09:33 PM the css seems fine. have you formatted the text on the page aswell? as you've got all teh font properties in a external css file, you could try highlighting all the text on your page and unformat it (that is if your uisng a html editor)
bourdelson 03-14-2004, 09:36 PM No HTML editor, per se. I'm using EditPad Lite [a souped up version of Notepad, basically] to write my HTML.
toolman 03-14-2004, 09:38 PM ok. do you have font tags for your text in the actual html in the page? if you do, try taking them out as they might be overwriting the css.
bourdelson 03-14-2004, 09:47 PM Nope, no font tags. The only text formatting tag I've used is <p align="left"></p>.
toolman 03-14-2004, 09:55 PM hmm, i'm not sure why it's not working.
i just noticed something.. in this part:
text,p,blockquote
{font-family: tahoma,verdana,arial,sans -serif;
color : #FDE2AD;
font-size:8pt;
}
try changing color : #FDE2AD; to font-color : #FDE2AD;
bourdelson 03-14-2004, 10:00 PM This is getting kind of weird, haha. I changed it and reuploaded it, and my text is still black. Maybe it's possessed. :lol:
toolman 03-14-2004, 10:05 PM Does your host put adverts on your site, as sometimes, they use text links which use their own formatting.. that could have overwritten your text, but it doubt it. i know its annoying, but how about trying a different host, just to see if it changes the text.
bourdelson 03-14-2004, 10:13 PM There are no ads on my host, but I tried it on a different server and it's still showing up black.
toolman 03-14-2004, 10:19 PM thats really strange, sorry but i have no idea why its doing it :( How about scrapping the css file and just formatting the text in the html?
bourdelson 03-14-2004, 10:25 PM I'll probably have to do that. Thanks for all of your help, though! I really appreciate it. :D
toolman 03-14-2004, 10:34 PM thats ok, but sorry i couldn't help more.
kittycat 03-14-2004, 10:52 PM The correct way to colour font in CSS is color: #colour; so try changing them to that.
|