Text floating out of the container in FF

This is a discussion on "Text floating out of the container in FF" within the Web Page Design section. This forum, and the thread "Text floating out of the container in FF are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Dec 7th, 2006, 12:25
Junior Member
Join Date: Nov 2006
Location: London
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Text floating out of the container in FF

Hi,
In order to get my main text area and my right navigation column floating nicely next to each other I have given my container a fix height.
Now, unfortunately, whenever the text exceed the height of the container, it does not adjust and the text is running out of the container.

This however only happens in FF - IE is absolutely fine.

Do you know what I can do within my CSS to make it also work in FF?

Your help is very much appreciated!

Best wishes
Sporky
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Dec 7th, 2006, 21:58
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Text floating out of the container in FF

That's a wierd IE bug. Anyway, have a look at an article I wrote about clearing floats at the bottom of the sticky in this forum for more info, but this will do it:

Code: Select all
.clear {
    width: 100%;
    height: 1px;
    margin: 0 0 -1px;
    clear: both;
}
And just stick in <div class="clear"></div> after the two floated div's.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Dec 8th, 2006, 12:33
Junior Member
Join Date: Nov 2006
Location: London
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Text floating out of the container in FF

Hi,
Thanks for your message. I used this code and everything is floating nicely the way I want it to be, however, my container div which is wrapping my content and nav div is not expanding in FF according to the contents. It is working in IE but in firefox contents comes out of the box.
I tried overflow hidden, but that is not working either as it just creates a scroll bar and that looks horrible.
Do you have any other ideas?
Regards
Sporky
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Dec 8th, 2006, 13:07
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Text floating out of the container in FF

Did you remove the fixed height? You need to understand the principles of floats and absolute positioning more if it's still not working.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
container, css, floating

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Position Within a Container Problem Aerdan Web Page Design 3 Apr 12th, 2008 19:13
Floating over text ihateasp Web Page Design 8 Dec 18th, 2007 09:16
Floats don't effect the height of the their container????? chrissp26 Web Page Design 5 Sep 19th, 2007 15:38
Container Problem in FireFox asengh Web Page Design 8 Dec 12th, 2006 17:23
container overlaps upon text resize in Firefox eksquall Web Page Design 4 Aug 1st, 2006 16:26


All times are GMT. The time now is 12:32.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved