Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New Coder
    Join Date
    Nov 2009
    Thanked 0 Times in 0 Posts

    stertching a div across the entire screen

    Okay, I've found the solution. Just had to set the padding and margin to 0 for the body as well.


    I'm trying to replicated the same type of div header that you see on www.reddit.com, the light gray one across the top with no margin space around it. I've tried replicating the css attributes, even the ones that don't seem relevant, but my header still has space on both sides and above it where the body background color shows through.

    I've set the width to 100% and the margin to 0 without any luck.

    The only thing that sort of worked was using absolute positioning and then setting the left and top attributes to 0px. This worked, but then the content underneath it would move up to the top of the screen and overlap with it.
    Last edited by bonecone; 11-25-2009 at 04:07 PM. Reason: solution found


Posting Permissions

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