PDA

View Full Version : Layout Problems



sethbaur
24 Feb 2008, 07:41 PM
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?

Wickham
25 Feb 2008, 02:02 AM
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>