![]() |
Problem with wrapper background in CSS
Hi, I am really a beginner in making web pages. I have read tons of tutorials and I have made quite a progress I think. But I get stuck in one simple problem. I want to make a simple webpage with this layout: http://i49.tinypic.com/1r54l4.jpg
I have a body with background. I want this background to be visible above and under the png logo. Then I have canvas with menu on the left side with the same color background but different color than body. And then the footer with a little margin again. The code looks like this: Code:
body {Code:
<body>Thanks for any help. |
Your floated divs are "out of the document flow" from the perspective of their containing divs of wrapper and content. That's why the wrapper and content are not including them. There are several ways to resolve this, I tend to use overflow:auto in the surrounding div.
Also your width attribute on the logo is wrong, it should just be width="1200". Or better yet use a width in css. Dave |
First I think you are tackling your logo wrong, by that I mean your logic. Why don't you do something like the following:
Example of CSS Code Code:
body {Code:
<body>Code:
header { |
Thanks a lot guys for help. Everything is now how I have wanted. Obviously if I had written earlier and I would have saved few days of endless evenings :)
|
| All times are GMT +1. The time now is 02:20 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.