5 replies [Last post]
mrRoberts
Offline
Enthusiast
London
Last seen: 12 years 21 weeks ago
London
Joined: 2005-05-08
Posts: 61
Points: 0

Hi there,

I'm sure I've come across this problem before though can't remember how to sort it :?:

I can see that in IE the content area's height spans to whatevers in, though not the case in FF. I've given the main content div (.full_back) a height of 900px which overcomes the issue though I'm sure there a better way. Height:auto doesn't seem todo anything

here's the page I'm working on
http://www.clippergems.com/test2.html

many thank,

mrRoberts

ro88o
ro88o's picture
Offline
Enthusiast
Manchester, UK
Last seen: 11 years 29 weeks ago
Manchester, UK
Joined: 2005-06-29
Posts: 202
Points: 0

[Solved] Setting a height to the main content area

By floating .left755 your pulling it out of the natural flow, give its containing div (.full_back): overflow: hidden; ...and remove the height.

www.nubornis.com
Web Development and E-commerce Solutions.

mrRoberts
Offline
Enthusiast
London
Last seen: 12 years 21 weeks ago
London
Joined: 2005-05-08
Posts: 61
Points: 0

[Solved] Setting a height to the main content area

Hi there ro88o,

I've tried what you suggested though now FF just hides the copy within the div .left755 ... :?

At the top of my style sheet, I've got an id called #content_wrap would this be contributing to the problem too..

thanks

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 4 years 47 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

[Solved] Setting a height to the main content area

Your divs are a little confusing and possibly unnecessarily so, you can try adding overflow:hidden to content-wrap but there is something not quite right about the layout.

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

mrRoberts
Offline
Enthusiast
London
Last seen: 12 years 21 weeks ago
London
Joined: 2005-05-08
Posts: 61
Points: 0

[Solved] Setting a height to the main content area

Hi Hugo,

when you say

Quote:
Your divs are a little confusing and possibly unnecessarily so

I've tried to be as neat as possible with my styles and naming conventions... Am I digging a deeper hole tring to work the content height issue? do I need to be re-thinking my layout.. hope not

I've just tried adding overflow:hidden to the content-wrap though it didn't make a change

I'm going to keep trying!

mrRoberts
Offline
Enthusiast
London
Last seen: 12 years 21 weeks ago
London
Joined: 2005-05-08
Posts: 61
Points: 0

[Solved] Setting a height to the main content area

All worked out now!! yippee

from going up and down the code It ended up being a explicit height on the main content div (.left755)

thanks for all suggestions along the way