SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Evangelist
    Join Date
    Jul 2005
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    set heights on divs that work in ie and firefox!?

    hi,
    im trying to set height on teh three content boxes at eth bottom of this page:
    http://www.websitevision.co.uk/rhc/
    this is fine, but when the user make stheir text size bigger, ie scales the boxes so the text is still contained within, but with firefox teh text starts coming out the bottom. ive tried a few hacks that are mentioned but they dont seem to work any ideas?
    cheers.

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,271
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    You could use a min-height for mozilla which will allow it to expand. However they won't expand at the same rate.

    Code:
    .oneThirdDarkMain{
    background:#e8f0ef;padding:8px;border-top:1px #fff solid;border-bottom:1px #fff solid;min-height:15em;
    
    }
    
    * html .oneThirdDarkMain{height:15em;}
    If you want equalising boxes then look at the PIE method although its a little complicated.

    http://www.positioniseverything.net/...ut/equalheight

  3. #3
    SitePoint Evangelist
    Join Date
    Jul 2005
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi, i just tried your method, but it didnt have any effect(?). why would firefox behave like this?

  4. #4
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,271
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    hi, i just tried your method, but it didnt have any effect(?
    Then you did it wrong Did you remove the height and replace it with min-height as in my example ?

  5. #5
    SitePoint Evangelist
    Join Date
    Jul 2005
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hah! yes, i implemented it wronginglingly! 4.39pm on a friday is the wrong time to have to think.
    thanks. - G


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •