Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-10-2007, 01:59 AM   PM User | #1
disenolopez
New to the CF scene

 
Join Date: Aug 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
disenolopez is an unknown quantity at this point
Nested DIV Overlapping Parent Div

website:
http://myspicefusion.com/sample/

css:
http://myspicefusion.com/sample/css/stylesheet.css

I have a nested .div that contains the site's main content, which in this case will be a menu that expands vertically. The parent div that it is contained within doesn't expand to adjust to the height of this menu...Instead it overlaps the boundary of container/parent div. I need the container div to grow with the div that is nested within.

If you need another example...this is also happening in another website I'm working on:
http://vvmconline.com/schlerotherapy.html

css:
http://vvmconline.com/css/stylesCosmeticCenter.css

...The right column where the pictures are displayed overlaps the parent/container div.

Maybe with these 2 examples you can see what I'm doing wrong missing.

It displays the same on latest versions of Safari, Firefox & IE (Windows & Mac)

Please help...Thanks.
disenolopez is offline   Reply With Quote
Old 08-10-2007, 02:24 AM   PM User | #2
solidarity
New to the CF scene

 
Join Date: Aug 2007
Location: America
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
solidarity is an unknown quantity at this point
If I'm correct, the ".container" div is the one you want to expand. I notice that this div has a set height of 740px. If you remove the height attribute altogether or just set it to a higher number of pixels, it should solve the problem.
solidarity is offline   Reply With Quote
Old 08-10-2007, 03:31 AM   PM User | #3
disenolopez
New to the CF scene

 
Join Date: Aug 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
disenolopez is an unknown quantity at this point
Hi thanks for your reply but that didn't work...I've tried setting the height to 100%, and also to auto but nothing...?? I'm stumped.
disenolopez is offline   Reply With Quote
Old 08-10-2007, 05:07 AM   PM User | #4
solidarity
New to the CF scene

 
Join Date: Aug 2007
Location: America
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
solidarity is an unknown quantity at this point
What if you just set it to a height of 800 or so?

Edit: upon further examination, I think that taking away the height attribute might help, it just doesn't look like it because your image is too short for the content. Try giving the div a background color of white and taking away the height restriction.

Last edited by solidarity; 08-10-2007 at 05:11 AM..
solidarity is offline   Reply With Quote
Old 08-10-2007, 06:09 AM   PM User | #5
garydarling
Regular Coder

 
Join Date: Feb 2007
Location: Seattle
Posts: 153
Thanks: 5
Thanked 9 Times in 9 Posts
garydarling can only hope to improve
I'll take a stab at it before copying your code to a test page - Remove or adjust the height attributes for items nested within you container div. For example:

Code:
.sideBarRight {
	float: left;
	height: 400px;
	width: 170px;
	font-family: "Trebuchet MS", Garamond, "Times New Roman", serif;
	font-size: 11px;
	color: #C78D86;
	text-align: center;
	margin-top: 25px;
}
Set this to auto, or add overflow:scroll to see scrollbars for the content that exceeds your height boundary. Your container div may be calculating its height based on the attributes it calculates it needs for its nested items plus the ones you have defined.
garydarling is offline   Reply With Quote
Old 08-10-2007, 06:52 AM   PM User | #6
disenolopez
New to the CF scene

 
Join Date: Aug 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
disenolopez is an unknown quantity at this point
Hi GaryDarling...Thank you so much for that tip ...It fixed my issue with vvmconline.com...I simply took away the height attribute and that did the trick...and I also added a display:block;...Don't know if that helped but once I saw it worked...I wasn't touching it...but I def know removing that heigh attribute was the issue...now to see if that is the issue with the spicefusion.com website...Again, a million thanks...If you figure out anything w/that other site please do tell...Thanks for all your help...I've been trying to figure that one out for months.
disenolopez is offline   Reply With Quote
Old 08-10-2007, 06:54 AM   PM User | #7
disenolopez
New to the CF scene

 
Join Date: Aug 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
disenolopez is an unknown quantity at this point
Solidarity...Thanks for all your help...removing that height attribute did the trick...You and GaryDarling were right.
disenolopez is offline   Reply With Quote
Old 08-10-2007, 07:03 AM   PM User | #8
garydarling
Regular Coder

 
Join Date: Feb 2007
Location: Seattle
Posts: 153
Thanks: 5
Thanked 9 Times in 9 Posts
garydarling can only hope to improve
De nada
garydarling is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:53 AM.


Advertisement
Log in to turn off these ads.