Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
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