page is shifted to the right!! oh uh

Discussion in 'HTML & Website Design' started by robs132, Oct 21, 2009.

  1. #1
    Hi guys,

    When I change the cellpadding="10" to another number the whole webpage shifts right. Not sure why this is happening? any suggestions appreciated.

    website is http://www.f1driverssecrets.com/experiment.html

    <div id="wrapper">
    <table width="700" height="6275" border="1" cellpadding="10" cellspacing="10">
    <tr>
    <td height="245" bgcolor="#000000"><img src="car1.jpg" width="805" height="205" alt="F1 Drivers Secrets" />
    </td>

    </tr>
    <tr>
    <td height="5998" bgcolor="#FFFFFF">

    Thank you!!
     
    robs132, Oct 21, 2009 IP
  2. Rad_Dev

    Rad_Dev Peon

    Messages:
    62
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It has to do with the width of your banner at the top of the page. Either make the banner width less than 700px or change your wrapper width to match your banner (and table for that matter).


    instead of this:
    #wrapper {
    margin-left: auto;
    margin-right:auto;
    text-align:left;
    width: 700px;
    color: #000;

    try this:
    #wrapper {
    margin-left: auto;
    margin-right:auto;
    text-align:left;
    width: 810px;
    color: #000;
     
    Rad_Dev, Oct 21, 2009 IP
  3. dabzo

    dabzo Peon

    Messages:
    188
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ++ to center more gooder in ie, try changing your font align to center, the put another div inside that div, same size, etc, but with font align (whatever it should be) ie misinterprets the font-align value. It will look fine on load, but when you zoom, there's a big diff btwn ie and ff or chrome, etc.
    and yeah, header img would be it... more divs, less tables! ;D
     
    dabzo, Oct 21, 2009 IP
  4. Pyrokinetic

    Pyrokinetic Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The top banner should be 700px or less, or atleast have the banner and the table the same width.
     
    Pyrokinetic, Oct 22, 2009 IP
  5. robs132

    robs132 Peon

    Messages:
    112
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Guys thanks for the feedback. quite a messy page that needs fixing up... cant wait until my kowledge of html, CSS and dreamweaver gets loads better!!
     
    robs132, Oct 22, 2009 IP
  6. seomanEP

    seomanEP Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You should really start learning how to create sites using divs rather than tables, otherwise you'll get used to using tables, and div layouts are much more web friendly than table layouts.
     
    seomanEP, Oct 22, 2009 IP