Jump to content
Stef's Coding Community
lesley

css

Recommended Posts

Your side divs with the shadows are floated and floated divs have no height (height: 100% doesn't work as you have discovered) so you have to nest the content div inside both the side divs which drags down the backgrounds to the height of the content.

 

The content div should not have float: left if it's inside the side divs. It then has a height which is used by the side divs.

 

See the principle in item 17c here:-

http://www.wickham43.net/firefoxbackground.php

 

Item 19 shows another way using position:: absolute divs as backgrounds.

 

Edit: I can see that you've changed the page, but my version of your original is:-

http://www.wickham43.com/forumposts/lesleyindex090907.html

http://www.wickham43.com/forumposts/lesleywrapper090907.css

http://www.wickham43.com/forumposts/lesleycolors090907.css (same as your colors.css)

 

I made a new image leftrun3.jpg for the left side but it doesn't seem to be quite wide enough.

 

I used the nested principles as in my first link but had problems at the top because of the #menu and #right divs which have to provide a different side image for the top part, so my version is very complicated but it works in Firefox and IE7.

Edited by Wickham

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...