Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorimanta
    • CommentTimeMar 28th 2006
     permalink
    So here is my problem. I am helping a family member with a site and trying to make the jump from tables to divs. I have it mostly working and it looks fine in IE, but Firefox has some issues.

    Here is the site: http://tinyurl.com/hbpbk

    It seems like the #leftcontent layer is not being taken into account by the parent #wrapper or #contentcenter tags even though it is relative to them. I just want the tan bars to continue to the bottom and the white background (with drop shadow) to run the entire length. Now, the leftcontent is laying over the top of the wrapper and contentcenter...

    This seems easy enough, but I have tried all kinds of stuff to no avail. A lot of people descibe this as a Firefox issue, but there must be some way to fix it. Any ideas?

    Thanks in advance.
    •  
      CommentAuthornifkin
    • CommentTimeMar 28th 2006 edited
     permalink
    blind guess: stick an element set to clear:both; (like <br style="clear:both;" />*) after all your other content inside your #contentcenter div.


    * everyone can start to argue over the semantics of doing this after it works. :P
    • CommentAuthorfleaguru
    • CommentTimeMar 28th 2006
     permalink
    Hi mate, This fugged me right off on a site i did, but try this out. Create the following class:-

    .clearer {clear:both;height:1px;}

    Then add this class to a <br> ( <br class="clearer"> ) before you close the div at the end that forms the white panel.

    Basically it closes off the cascade and ensures it doesn't take any attributes from the other styles in the cascade - I think that makes sense! ;-)

    Hope that makes sense...
    • CommentAuthorimanta
    • CommentTimeMar 28th 2006
     permalink
    Wow, exactly the same feedback... so I tried it and it still looks the same. Also it is super crazy in IE now.... tthe length of the page is massively long...

    It has something to do with #leftcontent panel... although I am not quite sure what. When I remove this, everything starts working. So the question is, why doesn't the length of the #leftcontent style just cause the #contentcenter to grow?

    Wow, this seems so simple.. what am I missing?
    •  
      CommentAuthornifkin
    • CommentTimeMar 28th 2006
     permalink
    So the question is, why doesn't the length of the #leftcontent style just cause the #contentcenter to grow?

    Because the #leftcontent div is set to float:left; which means that containing elements do not expand to contain it. that's why you need either some sort of element in the end to clear the floated element (and expand the container to wrap around it) or to use the PositionIsEverything.net "How To Clear Floats Without Structural Markup" fix. (though if a clearing element is breaking the layout I would be very surprised if that worked any better.)

    most likely you just need to use one of those and then clean up the what/how css for the rest of the page to get it to work.

    In other news: you might want to consider building using firefox then hacking for IE, it's much easier to do the compliant code then add the specific code then it is to do the opposite. (I'm just guessing based on the way yr first post was worded that yr using IE as you're building, if that's not the case then feel free to ignore this.)
    • CommentAuthorimanta
    • CommentTimeMar 29th 2006
     permalink
    Alright so I got a bit farther and everything is 100% awesome in Firefox... now over to the crap that is IE.... All good, except the right hand background doesn't run all the way to the bottom. Works fine in FF though... aaaaaahhh.

    Any ideas?
    •  
      CommentAuthornifkin
    • CommentTimeMar 29th 2006 edited
     permalink
Add your comments
    Username Password
  • Format comments as (Help)