Hi i am wondering if anyone here can help me figure out how to change some colors on my site. I mean i dont' know where to go to change this color here is a image of where i need the color change thanks to anyone who can help me.
What your trying to change is the body's background color. Using CSS, you can change the background color. For example to change the body background to black if that is your website, in the CSS stylesheet add: body { background-color: #000000; } or change <body text="#000000" leftmargin="0" topmargin="0" > to <body text="#000000" leftmargin="0" topmargin="0" style="background-color: #000000"> To change the color to a color other than black, change the #000000 part of my added code to another color code corresponding to the color you want. You are also allowed to use certain color names such as blue. W3Schools offers more information on changing backgrounds.
You might have a file called: style.css. You can change almost every aspect of your site's layout and style there. Look for the .css extention. If not look in your index file for the code between <style> tags near the top of the page. After looking at the source it appears to be in your index file on line 22 so change body {} to body { background-color: #000000; }
It depends on how you've written the page, if it's done in css it can be either an internal style or referring to an external stylesheet. Or you can simply add the following attribute to your body tag <body bgcolor="red"> for red background, etc That's just simple html, not css markup
hmm i am still not able to change it here is my index page what should i be changing? ###################################################################################################################### include("routines.php"); ?> <html> <head> <title><?php echo "$ptrname | Get paid to read e-mails, click links, signups, refer other!"; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> <style> .headerStyle { background-image:url(images/headerGradient.jpg); background-repeat:repeat-x; background-color:#009fe9; text-align: left; padding-left: 7px; font-weight: bold; font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #FFFFFF; } .box { border: 1px solid #009fe9; } <? $c_result = mysql_query("select value from design where name='body_style'"); $c_row = mysql_fetch_row($c_result); ?> body{<?echo $c_row[0]?>} <? $c_result = mysql_query("select value from design where name='h2_style'"); $c_row = mysql_fetch_row($c_result); ?> h2 {<? echo $c_row[0]; ?>} </style> <?php //BORDER STYLES ?> <style> <? $c_result = mysql_query("select value from design where name='borderStyles'"); $c_row = mysql_fetch_row($c_result); ?> <? echo $c_row[0]; ?> </style> <?php //TABLE AND LINK STYLES ?> <style> <? $c_result = mysql_query("select value from design where name='linkStyles'"); $c_row = mysql_fetch_row($c_result); ?> <? echo $c_row[0]; ?> </style> <link href="style.css" rel="stylesheet" type="text/css"> <style type="text/css"> <!-- .font14pxBoldStyle { font-size: 14px; font-weight: bold; } .font0099ffbold { color: #000000; font-weight: bold; } .fontWhiteStyle {color: #FFFFFF} --> </style> </head> <body text="#000000" leftmargin="0" topmargin="0" > <div align="center"></div> <table width="770" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#000000"> <tr valign="top"> <td> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="770" height="54" valign="top"><table width="100%" border="0" cellpadding="10" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="233" height="54" valign="top"><img src="./images/logo.jpg" width="230" height="54"> </td> <td width="537" valign="middle"> <div align="right" class="font0099ffbold"> <div align="center"> <?php displayBanner(); ?> </div> </div></td> </tr> </table></td> </tr> <tr valign="top"> <td height="30"> <table width="100%" border="0" cellspacing="1" cellpadding="0"> <tr> <td> <table id="Table_01" width="100%" height="28" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="832" align="center" valign="middle" background="/images/menuBG.jpg"><div align="center" class="white14pxBoldArial style1 font12pxSize style9"> <span class="font14pxBoldStyle"> <?php showMenu("website",'font12pxSize fontWhiteStyle',''); ?> </span> </div></td> </tr> </table> </td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#666666"> <tr> <td bgcolor="#CC0033"><?php if(isset($_SESSION['login'])) { ?><table id="Table_01" width="100%" height="28" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="832" align="center" valign="middle" bgcolor="#EFEFEF"><div align="center" class=" font12pxSize"> <?php showMenu("member",'font12pxSize',''); ?> </div></td> </tr> </table><?php } ?> <table width="770" border="0" align="center" cellpadding="5" cellspacing="0"> <tr valign="top"> <?php if($sideBarLeft == 1) { ?> <td width="150"><?php include("sidebar.php"); ?></td> <?php } ?> <td height="100%" width="620"><div align="center"> <?php include_once("siteContent.php"); if($dispContentBanner == 1) displayBanner(); ?> <br> </div></td> <?php if($sideBarLeft == 0) { ?> <td width="150"><?php include("sidebar.php"); ?></td> <?php } ?> </tr> </table></td> </tr> </table> </td> </tr> </table></td> </tr> <?php if(isset($_SESSION['login'])) { ?> <tr valign="top"> <td height="27"><!--DWLayoutEmptyCell--> </td> </tr> <?php } ?> </table> </td> </tr> <tr> <?php $c_result = mysql_query("select name, comments, value from design where name='pagebg'"); $c_row = mysql_fetch_row($c_result); ?> <td valign="top" bgcolor="<?echo $c_row[2]?>"> </td> </tr> <tr> <td align="center" valign="middle"> <p align="center"><br> <a href="index.php">Home</a> | <a href="index.php?tp=signup">Join Now</a> | <a href="index.php?tp=member">Members Login</a> | <a href="index.php?tp=advertise">Advertise Here</a> | <a href="index.php?tp=terms">Terms and Conditions</a> | <a href="index.php?tp=faq">F.A.Q.</a> | <a href="index.php?tp=contacts">Contact Us</a><br> <font size="1">© <?php echo date("Y"); ?></font> <?php echo SportsMails; ?> <br> <br> </td> </tr> </table> </body> </html>
Change <body text="#000000" leftmargin="0" topmargin="0" > to <body bgcolor="red" text="#000000" leftmargin="0" topmargin="0" > Easy peasy!
ok now that i'm done laughing. inside your head tags - <head>SOMEWHERE IN HERE</head> Code (markup): place the following: <style type="text/css"> body {background-color:#000000;} </style> change the 6 zeros to whatever color code you want.
Ah, nah... I've been using easy peasy waaay before that movie ever came out. Anyway getting a bit off topic now... lol