Firefox isn't expanding divs...

Discussion in 'CSS' started by kev971, Aug 23, 2005.

  1. #1
    Alright can anyone tell me what I am doing wrong here. I cannot for the life of me figure out why firefox will not expand my container DIV with the content. IE is handling it ok, but firefox just will not expand that background.

    Any help is greatly appreciated.

    http://www.purafil.com/eagledev/aboutPurafil.html
     
    kev971, Aug 23, 2005 IP
  2. Crazy_Rob

    Crazy_Rob I seen't it!

    Messages:
    13,157
    Likes Received:
    1,366
    Best Answers:
    0
    Trophy Points:
    360
    #2
    FF is goofy sometimes.

    That page looks fine in my version 1.0. :D
     
    Crazy_Rob, Aug 23, 2005 IP
  3. kev971

    kev971 Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Dang...I am on 1.0.4 . Firefox just prompted me to update my browser so I will do that and see what happens. Thanks for checking it out.
     
    kev971, Aug 23, 2005 IP
  4. Crazy_Rob

    Crazy_Rob I seen't it!

    Messages:
    13,157
    Likes Received:
    1,366
    Best Answers:
    0
    Trophy Points:
    360
    #4
    Post a screenshot of the problem if it's still happens.
     
    Crazy_Rob, Aug 23, 2005 IP
  5. kev971

    kev971 Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    OK so I updated to 1.0.6 and the problem is still there. I realize there are a lot of nested elements in here, but the majority of my HTML validates and my CSS validates. Here is a screenshot:
     

    Attached Files:

    • ff.jpg
      ff.jpg
      File size:
      97.5 KB
      Views:
      759
    kev971, Aug 23, 2005 IP
  6. Crazy_Rob

    Crazy_Rob I seen't it!

    Messages:
    13,157
    Likes Received:
    1,366
    Best Answers:
    0
    Trophy Points:
    360
    #6
    That page is screwy on my browser too.

    I looked at your file and I can't tell what the problem is.

    Hopefully someone else can help you.


    BTW- is that your site? We have an office in Doraville too!
     
    Crazy_Rob, Aug 23, 2005 IP
  7. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #7
    div's are not supposed to be expanded once you have height or width specified for them. IE does this because MS decided to "improve" the standard. Avoid using height and/or width with div's, unless their content is of fixed height/width as well.

    J.D.
     
    J.D., Aug 23, 2005 IP
  8. kev971

    kev971 Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    OK I was trying to use a min-height attribute/hack found on mezzoblue and once I removed that it worked. I can specify a min-height for firefox but I can't for IE. So it looks like I am stucking having no minum height. Either way firefox is expanding the divs now.
     
    kev971, Aug 23, 2005 IP
  9. kev971

    kev971 Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Wow, it is quite a coincidence that you found the new Purafil website I am working on. :D
     
    kev971, Aug 23, 2005 IP
  10. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #10
    It's in your screenshot :D

    As for min/max-height/width, you are right, IE ignores them. You can make div's stretchable horizontally if instead of width, you specify left and right margin. For example:

    div.container {margin: auto 20px;}

    Then this div will be rendered across it's containing element with fixed left and right margins. If you did the same with widht: 100%, it wouldn't not work across various browsers, depending on width/margin mix, because they intepret 100% differently.

    J.D.
     
    J.D., Aug 23, 2005 IP
  11. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #11
    cheers, i too have the same problem with FF, IE shows it fine but FF does not.

    thx again.
     
    just-4-teens, Aug 23, 2005 IP
  12. JamieC

    JamieC Well-Known Member

    Messages:
    226
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    138
    #12
    As people have pointed out - FF is not screwy, it's correct. IE is wrong. Check the CSS standard at the W3C.

    If you do, you will see that their recommendation to get a container div to stretch around content is to use a clearing div - google it :)
     
    JamieC, Aug 24, 2005 IP