4 Replies Latest reply on Jul 24, 2008 7:19 AM by Newsgroup_User

    CSS problem: Clearing Floats

    nowherecreative Level 1
      I have a clear: both; applied to my footer div but it is not working when my float left div expands lengthwise as content fills it ... it is still going underneath the footer instead of pushing it down. Any ideas why? Thanks in advance.
        • 1. Re: CSS problem: Clearing Floats
          Level 7
          .oO(nowherecreative)

          >I have a clear: both; applied to my footer div but it is not working when my
          >float left div expands lengthwise as content fills it ... it is still going
          >underneath the footer instead of pushing it down. Any ideas why? Thanks in
          >advance.

          What float? What div? What footer? How should we know what happens in
          your code without seeing it? Please post a URL.

          Micha
          • 2. Re: CSS problem: Clearing Floats
            Level 7
            nowherecreative wrote:
            > I have a clear: both; applied to my footer div but it is not working when my
            > float left div expands lengthwise as content fills it ... it is still going
            > underneath the footer instead of pushing it down. Any ideas why? Thanks in
            > advance.
            >


            Get rid of the height on your main-nav div...its the only container
            using float left on the page so it must be that which you are reffering to.

            Why give it a height in the first instance IF whats going in it is more
            than the specified height <sigh>
            • 3. Re: CSS problem: Clearing Floats
              nowherecreative Level 1
              Oh my! When I set up the page I made sure there wasn't height applied to that div, somehow days later I added height to it (obviously I didn't mean to). I didn't even think to check it because it wasn't there when I first set it up. Thanks for your help, much appreciated. :)
              • 4. Re: CSS problem: Clearing Floats
                Level 7
                Heights and widths happen when you drag borders of containers. It's a great
                argument for never using Design view for placement adjustment.

                --
                Murray --- ICQ 71997575
                Adobe Community Expert
                (If you *MUST* email me, don't LAUGH when you do so!)
                ==================
                http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                ==================


                "nowherecreative" <webforumsuser@macromedia.com> wrote in message
                news:g6a2l2$crv$1@forums.macromedia.com...
                > Oh my! When I set up the page I made sure there wasn't height applied to
                > that
                > div, somehow days later I added height to it (obviously I didn't mean to).
                > I
                > didn't even think to check it because it wasn't there when I first set it
                > up.
                > Thanks for your help, much appreciated. :)
                >