Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

An Alternate To My Float Element?


  • Please log in to reply

#1
Sir Grand Funk

Sir Grand Funk

    Member

  • Member
  • PipPipPip
  • 115 posts
The paragraph inside the box to the left is floating. The box (the div) has a specified height. So if you were to increase the text size, the paragraph would float outside the div/box.
  • 0

Advertisements


#2
Michael

Michael

    Retired Staff

  • Retired Staff
  • 1,869 posts
I don't think the float has anything to do with it. If you have any div, and set a height to it. Then add more content to it than it can hold, It will either stretch it (IE) or pop out of it (FF). You could set the height in em that way the box would get higher when the font size changes.

Edited by Michael, 18 January 2007 - 12:11 AM.

  • 0

#3
Sir Grand Funk

Sir Grand Funk

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 115 posts

I don't think the float has anything to do with it. If you have any div, and set a height to it. Then add more content to it than it can hold, It will either stretch it (IE) or pop out of it (FF). You could set the height in em that way the box would get higher when the font size changes.

no no no... You don't see. If content is floating over a fixed div (one that has been sized) and the content that is floating is longer or wider than the content in which fixed, the content floating will spill out of the div visually uncontained.
  • 0

#4
Michael

Michael

    Retired Staff

  • Retired Staff
  • 1,869 posts
Ah that is a better explanation of your problem. What you need is to put as the last thing the the fixed div.

<div style="clear:both"></div>

That should fix it.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP