| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: May 2007
Posts: 48
|
Center scale div's - anyone?
Ok so Im trying to scale and pad my divs so that my site looks correct. Sorry if this doesnt make much sense, ill post some pictures Basically I want my site to look like this ![]() However I want the background to be white so I can put other divs ontop, however I cant get it aligned and it looks like this ![]() Here is my code: Code:
and my css Code:
If anyone could help me solve this that would be great, otherwise its going to be background images in tables |
|
|
|
|
|
#2 (permalink) |
|
with a hint of lemon
Join Date: Aug 2006
Location: Hull
Posts: 478
|
__________________ Online portfolio: mgpwr.co.uk
|
|
|
|
#3 (permalink) |
|
shiro
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 2,084
|
You have all your divs nested so that they are like this: Code:
Try changing the overall structure so that its like this: Code:
Give content_holder a left and right margin to indent it from the page a little, then set the width of top_bar and content to be 100%. content_holder will then be indented a little from both edges, and top_bar and content will be confined by content. |
|
![]() |