FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


CSS problem...





wumingsden
Ok, my website is located here:

www.wmd.frih.net

I am about to change this index page to the one here:
www.wmd.frih.net/test

as I want to use this CSS code:

Code:

BODY{background-color:#000000; color:#FFFFFF; font-family:serif; font-size:medium; font-weight:normal; scrollbar-3dlight-color:#FFFFFF; scrollbar-arrow-color:#000000; scrollbar-base-color:#000000; scrollbar-darkshadow-color:#FFFFFF; scrollbar-track-color:#000000; scrollbar-face-color:#FFFFFF; scrollbar-highlight-color:#000000; scrollbar-shadow-color:#000000; }
FONT{color:#FFFFFF; font-size:medium; font-family:serif; background-color:#000000; font-weight:normal; text-decoration:none; }
P{color:#FFFFFF; font-size:medium; font-family:serif; background-color:#000000; font-weight:normal; text-decoration:none; }
PRE{color:#FFFFFF; font-size:medium; font-family:serif; background-color:#000000; font-weight:normal; text-decoration:none; }
A{color:#FF0000; background-color:#000000; font-family:sans-serif; font-size:xx-small; font-weight:bold; text-decoration:underline; }
A:Visited{color:#FF0000; background-color:#000000; font-family:sans-serif; font-size:xx-small; font-weight:bold; text-decoration:line-through; }
A:Hover{color:#FF0000; background-color:#000000; font-family:sans-serif; font-size:xx-small; font-weight:bold; text-decoration:none; }
H1{color:#FFFFFF; background-color:#000000; font-size:medium; font-family:serif; font-weight:normal; text-decoration:none; }
H2{color:#FFFFFF; background-color:#000000; font-size:medium; font-family:serif; font-weight:normal; text-decoration:none; }
H3{color:#FFFFFF; background-color:#000000; font-size:medium; font-family:serif; font-weight:normal; text-decoration:none; }


The only problem with this though is the writing is hidden by the background. I've looked at the code above and know that I'm over-looking something, I just don't know what Crying or Very sad

Any help would be appreciated Very Happy
Reign
background-color:#000000;

this is not necessary i think.... can't seem to find a reason why you would set the background of a font to black?

also can't find it on w3c so it isn't valid...
http://www.w3schools.com/css/css_reference.asp#font

can't view your websites either

edit: my mistake, must have done something wrong.... your text is black, press ctrl+A when viewing page...
wumingsden
Yes, I know the text is black, it is hidden behind the black background. In the CSS code the text should be white, but it isn't so on the page,
Anyone know why?
Reign
Code:
   <style>
   * { font-family: monotype corsiva, verdana; font-size: 16pt; COLOR: black; }
   b { font-weight: bold; }
   table { height: 50%; border: 1px solid white;}
   td { text-align: center; padding: 25;}

   </style>


this is a second style block, why? here you say your text should be black... delete this and your text will be white...

edit: by this I mean
Code:
COLOR: black;
misterdimiz
try removing
Code:
background-color:#000000;

from each one except BODY
wumingsden
Thanks Reign, I didn't notice that I had two blocks, this was becuase I used that CSS block as an old default for all my pages.

Topic Closed
misterdimiz
wumingsden wrote:
Thanks Reign, I didn't notice that I had two blocks, this was becuase I used that CSS block as an old default for all my pages.

Topic Closed


just here to help
Related topics
CSS problem
CSS Problem
Different View CSS Problem with Firefox, opera, IE , mozilla
CSS problem - very simple css dont work in Firefox/Opera.
Need Help With CSS
Css problem
css problem
Different Browser - CSS Problem
CSS problem?
Fix a simple CSS problem for 200FRIH$!!!
Slight css problem in IE [SOLVED]
Discussion for CSS problem
PHP imagecreate + CSS problem.
PHP imagecreate + CSS problem.
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.