Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Mar 2003
    Location
    USA
    Posts
    99
    Thanks
    24
    Thanked 0 Times in 0 Posts

    margin: 0px; not working in Safari?

    http://www.darkgamer.com/

    Can someone tell me why it works fine in FireFox but not in Safari or IE?

    I'm trying to get the "shaded" bg image to touch the top. It works in FireFox.. just not Safari or IE.

  • #2
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,736
    Thanks
    0
    Thanked 241 Times in 236 Posts
    Hi there Blatch,

    in your style sheet change this...
    Code:
    
    .body {
        background-image: url('images/background_top.gif');
        background-repeat: repeat-x;
        background-position: top left;
     }
    
    ...to this...
    Code:
    
    .body {
        background-image:url(images/background_top.gif); 
        background-repeat:repeat-x; 
        padding-top:30px;
     }
    
    ...and this...
    Code:
    
    table.main {
        background-color: #101010;
        width: 960px;
        border: 1px #000000 solid;
        align: center;
        margin-top: 30px;
     }
    
    ...to this...
    Code:
    
    table.main {
        background-color:#101010;
        width:960px;
        border:1px solid #000;
     }
    
    Also I suggest that you, at least, check out some of these links...
    coothead

  • Users who have thanked coothead for this post:

    Blatch (03-27-2009)

  • #3
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,864
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Code:
    table.main {
    background-color: #101010;
    width: 960px;
    border: 1px #000000 solid;
    text-align: center;
    /*margin-top: 30px;*/
    }
    Know why tables for layout is Stupid!
    Edit: too late :-(
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • Users who have thanked abduraooft for this post:

    Blatch (03-27-2009)

  • #4
    New Coder
    Join Date
    Mar 2003
    Location
    USA
    Posts
    99
    Thanks
    24
    Thanked 0 Times in 0 Posts
    Thanks guys!

    I usually code in divs, I was just in a rush to get this up lol.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •