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
    Oct 2007
    Posts
    9
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Question DIV Auto Height Not Holding Text in FireFox

    Hello All,

    I have a problem which is best described by example. So please view the following link in both IE and FireFox and point your attention to the content box in the center of your screen:

    http://webfxzone.com/CSSTemplate/template.html

    I have the content DIV (holding both the left and right columns) set to 'height: auto;' so that it will grow and shrink accordingly. However, with auto height, the content does not show up inside the DIV in firefox. It works perfectly in IE.

    The only way I've found to get around this problem is to make the height a fixed number. As you know, I do not want to do this.

    Any help on this matter would be greatly appreciated!!

    Thank you very much in advance!!

    Frank

  • #2
    Senior Coder jcdevelopment's Avatar
    Join Date
    Oct 2007
    Location
    Cowboy Nation
    Posts
    2,179
    Thanks
    174
    Thanked 257 Times in 257 Posts
    try this

    Code:
    #twoColumn {
    	width: 80%;
    	overflow:hidden;
    	margin-left: auto;
    	margin-right: auto;
    	background-color: #ffffff;
    	border: 1px solid #999999;
    	padding-bottom: 10px;
    	padding-top: 10px;
    }

  • Users who have thanked jcdevelopment for this post:

    FADiJohn (05-21-2008)

  • #3
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    For your convenience assembled code here.

    http://exitfegs.co.uk/c21.html

    with css change-

    http://exitfegs.co.uk/d21.html

    Frank
    Last edited by effpeetee; 05-21-2008 at 06:48 PM.
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • Users who have thanked effpeetee for this post:

    FADiJohn (05-21-2008)

  • #4
    New to the CF scene
    Join Date
    Oct 2007
    Posts
    9
    Thanks
    7
    Thanked 0 Times in 0 Posts
    Thanks a lot guys!

    Worked perfectly!!


  •  

    Posting Permissions

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