Changing the document flow without using floats or absolute

Discussion in 'CSS' started by AdamSee, May 4, 2006.

  1. #1
    Normally the document will set itself out like below when using two divs within a container

    [​IMG]

    But how can you get them to sit next to each other, inline, without using relative positioning or floats?

    [​IMG]
     

    Attached Files:

    AdamSee, May 4, 2006 IP
  2. FeelLikeANut

    FeelLikeANut Peon

    Messages:
    330
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #2
    display: inline
     
    FeelLikeANut, May 4, 2006 IP
  3. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #3
    What compelling reason do you have to arbitrarily eliminate two[1] of the tools on your workbench?

    cheers,

    gary

    [1] Thought, using relative positioning for this purpose would likely cause more issues than you could shake a stick at.
     
    kk5st, May 4, 2006 IP
  4. AdamSee

    AdamSee Well-Known Member

    Messages:
    422
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    135
    #4
    Yeah - it was silly really.

    http://www.worthgetting.com/test/

    When I floated the elements within the containing div the centre div collapsed. However, I for some strange reason forgot about clearing them afterword! All good now :)
     
    AdamSee, May 5, 2006 IP