Little help needed

Discussion in 'HTML & Website Design' started by tylerfaith, Aug 7, 2009.

  1. #1
    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.
    [​IMG]
     
    tylerfaith, Aug 7, 2009 IP
  2. AssistantX

    AssistantX Peon

    Messages:
    173
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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.
     
    AssistantX, Aug 7, 2009 IP
  3. tylerfaith

    tylerfaith Peon

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    would i be looking in my index file?
     
    tylerfaith, Aug 7, 2009 IP
  4. Jack Zero

    Jack Zero Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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; }
     
    Jack Zero, Aug 7, 2009 IP
  5. sjsweb

    sjsweb Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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
     
    sjsweb, Aug 7, 2009 IP
  6. tylerfaith

    tylerfaith Peon

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    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-->&nbsp; </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]?>">&nbsp;
    </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">&copy; <?php echo date("Y"); ?></font> <?php echo SportsMails; ?>
    <br>
    <br>

    </td>
    </tr>
    </table>
    </body>
    </html>
     
    tylerfaith, Aug 7, 2009 IP
  7. JahRasta311

    JahRasta311 Peon

    Messages:
    201
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hahahahahahhahahahah
     
    JahRasta311, Aug 7, 2009 IP
  8. sjsweb

    sjsweb Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Change

    <body text="#000000" leftmargin="0" topmargin="0" >

    to

    <body bgcolor="red" text="#000000" leftmargin="0" topmargin="0" >

    Easy peasy!
     
    sjsweb, Aug 7, 2009 IP
  9. JahRasta311

    JahRasta311 Peon

    Messages:
    201
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    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.
     
    JahRasta311, Aug 7, 2009 IP
  10. JahRasta311

    JahRasta311 Peon

    Messages:
    201
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    do you happen to watch burn notice?
     
    JahRasta311, Aug 7, 2009 IP
  11. sjsweb

    sjsweb Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Nope, but I know there's more than 1 way to skin a cat! :D
     
    sjsweb, Aug 7, 2009 IP
  12. JahRasta311

    JahRasta311 Peon

    Messages:
    201
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #12
    lol ok, i was only askin because a character in that show uses "easy peasy" a lot.
     
    JahRasta311, Aug 7, 2009 IP
  13. sjsweb

    sjsweb Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Ah, nah... I've been using easy peasy waaay before that movie ever came out. :) Anyway getting a bit off topic now... lol
     
    sjsweb, Aug 7, 2009 IP
  14. tylerfaith

    tylerfaith Peon

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Alrighty thanks to all of you i learned something new today :)
     
    tylerfaith, Aug 7, 2009 IP
  15. JahRasta311

    JahRasta311 Peon

    Messages:
    201
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #15
    no worries, that's what it's all about.
     
    JahRasta311, Aug 7, 2009 IP
  16. JahRasta311

    JahRasta311 Peon

    Messages:
    201
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #16
    I know it's a regular saying, and Burn Notice is a show, just thought I'd ask.
     
    JahRasta311, Aug 7, 2009 IP
  17. sjsweb

    sjsweb Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    No worries! It's always my pleasure.
     
    sjsweb, Aug 7, 2009 IP
  18. sjsweb

    sjsweb Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #18
    I had to look it up, it seems to be pretty good.. might watch it!
     
    sjsweb, Aug 7, 2009 IP
  19. beryle

    beryle Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #19
    good ones.......
     
    beryle, Aug 8, 2009 IP