Re: div-float here code

Discussion in 'HTML' started by Bergamot, Apr 23, 2008.

  1. Bergamot

    Bergamot Guest

    Neredbojias wrote:
    > On 22 Apr 2008, artev <> wrote:
    >
    >> with IE not work, I see this
    >> div1 div2 div3 div5 div6
    >> div4

    >
    > Try putting "clear:right;" on div3.


    That won't do anything if all the divs are floated left.
    http://www.w3.org/TR/CSS21/visuren.html#flow-control

    Besides, div3 is not the problem child, those following div4 are.

    --
    Berg
     
    Bergamot, Apr 23, 2008
    #1
    1. Advertising

  2. Bergamot

    Bergamot Guest

    Neredbojias wrote:
    > On 23 Apr 2008, Bergamot <> wrote:
    >
    >>>> with IE not work, I see this
    >>>> div1 div2 div3 div5 div6
    >>>> div4
    >>>
    >>> Try putting "clear:right;" on div3.

    >>
    >> That won't do anything if all the divs are floated left.
    >> http://www.w3.org/TR/CSS21/visuren.html#flow-control

    >
    > Okay, then how about this:
    >
    > <div>
    > <div>div1</div>
    > <div>div2</div>
    > <div style="float:none;">div3</div>
    > <div>div4</div>
    > <div>div5</div>
    > <div>div6</div>
    > </div>
    >
    > ...ie, just don't float the 3rd div.


    Not sure why you put that extra div around all of it, but I suppose it
    it depends on the particular content and styling whether that would give
    the desired results. It could work, given the right conditions.

    --
    Berg
     
    Bergamot, Apr 24, 2008
    #2
    1. Advertising

  3. Bergamot

    Bergamot Guest

    Neredbojias wrote:
    >
    > Yeah, as Gus Richter suggested, the OP indicated he didn't want to change
    > the html, just the styling.


    We heard you the first time. ;)

    --
    Berg
     
    Bergamot, Apr 24, 2008
    #3
    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. bd
    Replies:
    0
    Views:
    654
  2. dorayme

    Re: div-float here code

    dorayme, Apr 23, 2008, in forum: HTML
    Replies:
    5
    Views:
    436
    dorayme
    Apr 25, 2008
  3. Jimmy
    Replies:
    7
    Views:
    4,987
    Chaddy2222
    Nov 21, 2008
  4. K Viltersten

    <div ... /> and <div ...></div>

    K Viltersten, Mar 30, 2009, in forum: ASP .Net
    Replies:
    4
    Views:
    779
  5. Carsten Fuchs
    Replies:
    45
    Views:
    1,617
    James Kanze
    Oct 8, 2009
Loading...

Share This Page