Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    May 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Problems with the height of/stretching a <div>

    Hello! I have created this page www.cumdealer.com/pindsvin and everything works excellent (stretching <div>'s etc.), except the <div>'s colored red and blue on the site (#indhold_venstre og #indhold_hoejre). I need them to stretch 100% according to the height of #indhold_midt. I simply can not seem to figure this out - and it's really nagging me.

    Thank you in advance,
    fischer.

  • #2
    Regular Coder
    Join Date
    May 2007
    Posts
    118
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hello to denmark

    Try to set height:100%; for #indhold_venstre, #indhold_hoejre and #indhold_midt, min-height is not supported by IE (at least by 6.0). Anyway there will be still different output in IE and FF.
    Forum for webmasters and developers
    http://www.htmlfrenzy.com
    Are you an IT expert? Join our Reward system
    www.htmlfrenzy.com/reward-system.php

  • #3
    New to the CF scene
    Join Date
    May 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hello

    height:100%; is set for #indhold_midt in IE. But not in FF as FF renderes the page correctly using only min-height:100%;.

    however setting height:100%; for #indhold_venstre and #indhold_hoejre does not solve my problem. That's what all my fuss is about

    fischer.

  • #4
    Regular Coder
    Join Date
    May 2007
    Posts
    118
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must set height:100% for all 3 divs as I said to see some effect, but there will be still some problem which you need to solve...
    Forum for webmasters and developers
    http://www.htmlfrenzy.com
    Are you an IT expert? Join our Reward system
    www.htmlfrenzy.com/reward-system.php

  • #5
    New to the CF scene
    Join Date
    May 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ah.. I see your point now. However this really screws up my whole design and code. Is there no other way to do this?

  • #6
    Regular Coder
    Join Date
    May 2007
    Posts
    118
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It seems that solution is simple, remove div indhold_top from indhold_midt (it's not logical when indhold_venstre indhold_hoejre are both floating) and place that div prior to indhold_midt div.
    Forum for webmasters and developers
    http://www.htmlfrenzy.com
    Are you an IT expert? Join our Reward system
    www.htmlfrenzy.com/reward-system.php

  • #7
    New to the CF scene
    Join Date
    May 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well.. The reason I placed #indhold_top inside #indhold_midt is because I needed #indhold_midt to stretch while #indhold_top and #indhold_bund had to have fixed with...

    Maybe I do not get your point.. would you please post your edited, working code?


  •  

    Posting Permissions

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