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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Overflow:auto without defining height in IE?

    Hello everyone,

    I have a weird situation.

    I have a body Div in which no height can be defined, so it will stretch to the space provided.

    It is inbetween a header and footer div.

    Part of the CSS I have for it is this:

    Code:
    	position: fixed;
    	top: 157px;
    	bottom: 51px;
    	overflow: auto;
    	width: 100%;
    	background: #dededb
    *(157px being the top banner and 51px being the footer)

    This works beautifully in Firefox, as it sees the 51px, the footer, as the bottom and creates a scroller for the body before the footer.

    However, in IE, if you don't define a height, bottom:51px does nothing and the content stretches down all the way until the content ends, past the footer, instead of creating a scroller before it.


    Is there a fix for this in IE?

  • #2
    Senior Coder twodayslate's Avatar
    Join Date
    Mar 2007
    Location
    VA
    Posts
    1,042
    Thanks
    67
    Thanked 39 Times in 39 Posts
    Instead of bottom and top have you tried margin-top and margin-bottom?
    twitter | Quality Hosting - $5.95/mo*
    Feel free to PM me!

  • #3
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes I have, but it messed up the page even more. Any other ideas? I thought I got it working like half an hour ago, but didn't realize I was in firefox. *Sigh

  • #4
    Senior Coder twodayslate's Avatar
    Join Date
    Mar 2007
    Location
    VA
    Posts
    1,042
    Thanks
    67
    Thanked 39 Times in 39 Posts
    Can you post your whole code?

    edit:// think I got it, try padding
    http://twodayslate.com/test/vid401t.html
    This is what you wanted correct?
    Last edited by twodayslate; 06-06-2007 at 09:40 PM.
    twitter | Quality Hosting - $5.95/mo*
    Feel free to PM me!


  •  

    Posting Permissions

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