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 2 of 2
  1. #1
    Regular Coder
    Join Date
    Apr 2009
    Location
    Earth - sometimes sky :-)
    Posts
    121
    Thanks
    51
    Thanked 2 Times in 2 Posts

    Why have I border around my site?

    Hi!
    here is the link where I have a big problem
    http://www.code-elektronic.com/newsite/

    on the left and top of the site I have some white border.
    Can somebody figure out why and how to solve this?
    I didn't wish this border.

    I use in my css file for the main div element
    margin-left: auto
    margin-right: auto

    I try to align the main div with the content in it to the center of the browser.

    Some help please would be great...

    Thnx.
    Last edited by joda; 10-27-2009 at 11:41 AM.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,862
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Just add
    Code:
    *{
    margin:0;padding:0;
    }
    into your CSS, to nullify all browsers specific default values of margin/padding from all elements. Or in your case
    Code:
    body{margin:0;padding:0;}
    should also work.
    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:

    joda (10-27-2009)


  •  

    Posting Permissions

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