PDA

Click to See Complete Forum and Search --> : if I can't sort this ill have to use tables


Emmanize
11-30-2006, 10:36 AM
I am having so many problems with div containers in FF, and have done for a long time now. No matter what I try the text keeps running out side the container. It works in IE but not FF. I have put “min-height” and height: auto; on but it’s not working. I have googled it but nothing helpful is coming up. I can’t keep telling the client to adjust the height of the container when he wants to update. The only way around this would to put an overflow of which will mean re designing the whole site again.

Can anyone tell me what the problem is?

JPnyc
11-30-2006, 02:23 PM
Try adding white-space:wrap; to the div rules

D-Frag
11-30-2006, 02:51 PM
http://www.w3schools.com/ its a great site, you should check it out

chris_bcn
11-30-2006, 05:25 PM
post some code up

tZ
11-30-2006, 07:41 PM
what type of positoning is applied to the container?

is it floated, fixed, relative, absolute- what?

What type of layout is this?

Two,three, etc column?

Which container(given the above layout) do you want to expand to fit the content within(left, right, center, etc)?

One promblem you could be having is when elements in container are floated they will not be reconized by the container. Therefor, the container will allways be set to your min-width and never reconize the elements within containing them. The soution would be to add a element which clears everything.

Other then that I would need more info.

Emmanize
12-01-2006, 10:17 PM
I think I have sorted it but I am not sure if its going to interfere with the footer (you know when the footer doesn’t go expand down with the height of the container) however it is cleared. Ill have to see. The container is floated, but it also has min-height set.

jlknauff
12-02-2006, 03:53 AM
Sounds like you're using absolute positioning. Yes?

tZ
12-02-2006, 04:00 AM
if the container with the content is floated and its min-height is set all that means is that that container's height will allways be equal to the min-height unless the content within causes it to expand further.

However, if the content within isn't floated along with the container then the container will allways fail to reconize the content within resulting in the min-height being set by default all the time.

This would result in your clearing element only clearing the floated element which will allways be the min-height. So if you have content which extends out the container the content would overlap the footer. Unless of course the content didn't exptend out out of the container… then everything would look fine in one instance and totally off in another.