Help widening page width and background colour.

Discussion in 'HTML & Website Design' started by regencytimberbuildings, Feb 11, 2009.

  1. #1
    Hi,
    I have the following website http://www.regencytimberbuildings.co.uk
    It uses a CMS and mysql database

    I don't know much about coding to be honest and can only use a WYSIWYG editor

    Any idea on how I would change the page width to be wider and change the background colours?

    or if anyone can give me a quote to do the work for me.

    Thanks.
     
    regencytimberbuildings, Feb 11, 2009 IP
  2. Astroman

    Astroman Well-Known Member

    Messages:
    2,355
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    135
    #2
    If you wanted to be really basic and not use the style sheet you can just alter this bit near the top:

    <TABLE width="770" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">

    change width="770" and bgcolor="#FFFFFF" to whatever you want.
     
    Astroman, Feb 11, 2009 IP
  3. regencytimberbuildings

    regencytimberbuildings Active Member

    Messages:
    991
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Thanks.
    When you view the page source I can see that line of code but I cant find that line of code in the actual site files
    likke the index.php file

    Or would it be in another of my site files?

    Here is a copy of whats in the index.php



    <?php require_once('admin/userHeader.php'); ?>
    <?php
    $_title="Timber Garages, wooden garages, sheds, playhouses, summerhouses, garden offices timber workshops & log cabins by Regency Timber Buildings UK" ;
    $_meta_keywords="Timber Garages, wooden garages, Sheds, Summerhouses, Home Offices, Garden Offices, Timber Garage, timber workshops, Garden Sheds, Childrens Playhouses, Log Cabins, self build log cabin, Wrexham, England, Wales, UK";
    $_meta_desc="Timber garages and wooden garages by Regency Timber Buildings retailers and manufacturers of sheds, summerhouses, garden offices, timber workshops, log cabins and playhouses in the uk.";
    ?>
    <?php include('incl/header.php')?>
    <TABLE width="100%" cellpadding="0" cellspacing="0">
    <TR>
    <TD width="20%" valign="top" bgcolor="#99CC00"><?php include('incl/leftpromotion.php')?>&nbsp;</TD>
    <TD valign="top">

    <!--IFRAME frameborder="0" width="100%" height="700px" scrolling="auto" src="changableContent/homeContent.php">This is NOT iframe</IFRAME-->
    <?php include 'changableContent/homeContent.php'; ?>

    <BR><BR>
    <TABLE width="80%" border="1" align="center"><TR><TD>
    <TABLE width="100%" align="center" cellpadding="3" cellspacing="0" bordercolor="#EBEBEB" bgcolor="#FFCC00" class="text04">
    <?php
    mysql_data_seek($resultHeader,0);
    while( $rowHeader = mysql_fetch_object($resultHeader)){
    ?>
    <TR>
    <TD width="30%" valign="top">
    <IMG src="<?php echo $_site ?>/images/bulim1.gif">
    <A href="<?php echo $_site."/".str_replace(" ","_",$rowHeader->categoryName).".html"; ?>" class="leftnav">
    <?php echo $rowHeader->categoryName; ?>
    </A>
    </TD>
    <TD>
    <?php
    $snip=strip_tags($rowHeader->categoryDescription);
    $snip=substr($snip,0,50);
    echo substr($snip,0, strrpos($snip," "));
    ?> ...
    </TD>
    </TR>
    <?php } ?>
    </TABLE>
    </TD></TR></TABLE>

    </TD>
    </TR>
    <!-- Start of StatCounter Code -->
    <script type="text/javascript" language="javascript">
    var sc_project=2094974;
    var sc_invisible=0;
    var sc_partition=19;
    var sc_security="858afb6d";
    var sc_text=1;
    var sc_remove_link=1;
    </script>

    <script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><img src="http://c20.statcounter.com/counter.php?sc_project=2094974&amp;java=0&amp;security=858afb6d&amp;invisible=0" alt="free hit counter javascript" border="0"> </noscript>
    <!-- End of StatCounter Code -->

    </TABLE>
    <?php include('incl/footer.php')?>


    Thanks.
     
    regencytimberbuildings, Feb 11, 2009 IP
  4. codecre8r

    codecre8r Well-Known Member

    Messages:
    148
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    128
    #4
    It's most likely going to be in incl/header.php
     
    codecre8r, Feb 11, 2009 IP
  5. codecre8r

    codecre8r Well-Known Member

    Messages:
    148
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    128
    #5
    If you want to change the background color outside of the table, add this to your style.css file:

    body {
    background-color: #CCCCCC;
    }

    Just change #CCCCCC to whatever color you want.
     
    codecre8r, Feb 11, 2009 IP
  6. regencytimberbuildings

    regencytimberbuildings Active Member

    Messages:
    991
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #6
    Thanks for your help that worked good.
    What width page would you guys recommend? I got it at 1200
    Any idea on how/ what file to alter to change the text colour?
    I now need a longer header any idea how I find out how long it needs to be to fit the rest of the page so I can order one from someone?
     
    regencytimberbuildings, Feb 11, 2009 IP