text not changing to white

Started on the old forum in October 2011 · view the original in the archive · old links redirect here

3 replies · 401 views · started 15 years ago · 1 min read

3 participants
brand Senior · 391 posts #1

hi there friends can some one please help me i am trying to get the text to change to white but its not doing any thing apart from staying black

<?php
define('WCS',true);
header("Content-type: text/css");
header("Cache-Control: no-cache, must-revalidate");
include('./core/main.inc');
$row_profiles=mysql_fetch_array(mysql_query("select * from profiles where uid='".getuid_nick($uid)."'"));
$body_background=$row_profiles["body_background"];
$body_text=$row_profiles["#ffffff"];
$font_size=$row_profiles["font_size"];
$border_color=$row_profiles["border_color"];
$div_background=$row_profiles["div_background"];
$link_color=$row_profiles["link_color"];
if(!$row_profiles["uid"]){
$body_background="#000000";
$body_text="#ffffff";
$font_size="medium";
$border_color="#0000FF";
$div_background="#000000";
$link_color="#ffffff";
}
?>

body {background-image:url('./images/testing.gif');}
font-family : Comic Sans MS;
font-size:<?=$font_size?>;
margin: 0px;
padding: 1px;
color:<?=$body_text?>;}
p {padding:0px;}
input, select {color:<?=$link_color?>;
border: 1px ridge <?=$border_color?>;
font-family: Comic Sans MS, Tahoma, Verdana;
font-weight: bold;
background-color:<?=$body_background?>;}
* {text-decoration:none;}
img {border: 0px none;}
a, a:active, a:visited, a:hover {color:<?=$link_color?>;}
head {font-family : Comic Sans MS;
font-size:<?=$font_size?>;}
.div {margin: 2px 0px 2px 0px;
padding: 2px 0px 2px 0px;
color:<?=$body_background?>;
background-color:<?=$div_background?>;
border: 1px solid <?=$border_color?>;
text-align: center;}
.center {text-align: center;}
.left {text-align: left;}
.link {color:<?=$extlink?>;}

thanks to any one that helps

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

something else Fellow · 2,296 posts #2

Probably because you are closing your body css on this line:

brand wrote:

body {background-image:url('./images/testing.gif');}
  

try removing the }

brand Senior · 391 posts #3

it is still black writing something else

Added after 8 minutes:

sorted it now

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

s3nzo Developer · 156 posts #4

For text to be white you have to specify color

brand wrote: body {background-image:url('./images/testing.gif'); color:#FFF;}

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close