Results 1 to 2 of 2

Thread: Layout Problems

  1. #1
    Join Date
    Feb 2008
    Posts
    1

    Layout Problems

    Hi I'm trying to make a portfolio website and I'm having some issues with the layout. What I'm having trouble with is using divs and having background colors extend the edges of the browser. I'm having a hard time explaining what I mean so here is an image of what I want it to look like: http://www.domusludorum.com/seth/sethport.jpg.

    You can see that the background extends left and right to the edges for each section, and the content is centered. When I use divs, no matter what I do there is a margin. Any ideas on how I can achieve what I want?

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    The image shows a 20px white margin around the top, bottom and sides; we haven't got your code to look at, but it's probably the default body margin.

    Try a style:-
    body { margin: 0; } in you style sheet or in style tags in the head section like:-

    <style type="text/css">
    body { margin: 0; }
    </style>
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Posting Permissions

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