Floated element determine containter's height

Discussion in 'HTML' started by Mitja, Mar 6, 2004.

  1. Mitja

    Mitja Guest

    I have got a theoretical question regarding floats. As an example, let's
    take one of the Floatutorial sites:
    http://css.maxdesign.com.au/floatutorial/tutorial0706.htm
    Look at the bottom of the page for the source code of the example.

    Now suppose the whole paragraph were put into a div and that it (the
    paragraph) were only a line long. In such a situation, the floated letter
    would oveflow div's borders. Is it possible to make the height of div
    dynamic, yet big enough to accomodate the floated element?
    For what I need, a transparent element with clear:left at the end of the div
    is unfortunately, not a solution.

    Thanks in advance,
    Mitja
     
    Mitja, Mar 6, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jersie0
    Replies:
    0
    Views:
    684
    jersie0
    Nov 23, 2003
  2. Hardeep Rakhra
    Replies:
    10
    Views:
    682
    Hardeep Rakhra
    Feb 19, 2004
  3. Rik
    Replies:
    0
    Views:
    527
  4. Replies:
    2
    Views:
    342
    Jim Moe
    Dec 5, 2006
  5. freemont

    pics floated right in a div

    freemont, Jun 18, 2007, in forum: HTML
    Replies:
    1
    Views:
    316
    freemont
    Jun 18, 2007
Loading...

Share This Page