![]() |
Container div to height of content?
Hi there,
I'm working on a new template for a client, and I want the main body of the page to have a drop shadow, but of course it's difficult to set drop shadows for just certain sides of a div. So I decided to create a container div that would have the shadows. The problem I'm running in to is that without setting the "body,html" to 100%, the container only stretches down a little ways. BUT, with that "body,html" set to 100%, it stretches far past where I need it to be. http://dev.yourbusybee.com/kaleco/te...lecoindex.html I WANT it to be going to just above the copyright notice, right at the edge of the tiled footer background. I thought that was where I'd set the closed div for that container, but that's not where it's stopping. Help? ~Laura |
Hello operapixie,
You wrap the entire site in .shadowbox and put a 100% height on it so, of course, that's what it does. If you want your shadow to stop at the bottom of .outer and not enclose #copyright, you will need to close .shadowbox sooner. The 100% height would have to go too. Look at it like this - Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">Code:
.shadowbox { |
Thanks so much, Excavator.
I've made those changes, but it's still not right. It seems that the shadowbox container is only a few pixels tall, and is behind everything, which then causes the copyright notice to appear up at the top of the page. Hmmmm...I'm sure I did something wrong from what you suggested though. It's not uncommon for me to miss little details (blame my raging ADD...LOL) ~Laura |
Quote:
A good way to find that sort of thing is by validating. Check out the links in my signature. |
Ok. Definitely getting closer. I will have to look more carefully when I'm back in my office and have fewer distractions. Thank you so much, Excavator!
|
Now you close .shadowbox before your footer. Did you want .outer to have no shadow?
|
YES! Got it to work now. THANK you!
|
| All times are GMT +1. The time now is 06:36 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.