1 reply [Last post]
embraceillumination
embraceillumination's picture
User offline. Last seen 32 weeks 5 days ago. Offline
newbie
Timezone: GMT+8
Joined: 2011-09-28
Posts: 1
Points: -4

I have problem adding an inner background for my blog. The inner background is established in a new div (#inner-background) that cover up the entire webpage except the tag.

I use the body tag for my main background and the #inner-background tag for the inner background with 1000px for the width. However, the inner background does not show up. I have tried clear: both, display: block but it still didn't work.

This is the following css:
#inner-background { clear: both; margin: 0 auto; display: block; width: 1000px; background: #efefee; }

Moment later, I try to add a fixed height to the css code and the background eventually showing up depending on the value of the height.
I have also tried height: 100% but the background won't show up.

This is the following css:
#inner-background { clear: both; margin: 0 auto; display: block; width: 1000px; height: 1000px; background: #efefee; }

Please help me to identify the problem, I want the inner background to cover up the entire page with 1000px width but so far I was unable to achieve that.

Tony
Tony's picture
User is online Online
rank Moderator
Moderator
Timezone: GMT+10
Joined: 2003-03-12
Posts: 3794
Points: 1227

Hi embraceillumination, The

Hi embraceillumination,
The dive will either need some non positioned elements inside or a height value.
If you can link to an example it would help us understand the problem.

Your question may have already been answered, search and read before you ask.