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 3 of 3
  1. #1
    Regular Coder Ludatha's Avatar
    Join Date
    Jan 2008
    Posts
    250
    Thanks
    51
    Thanked 5 Times in 5 Posts

    Expanding boxes (simple)

    Hello

    I can't seem to work out why, but my content boxes won't go round my content, here is an example:

    http://www.genyx.co.uk/index.php?_a=...&product_id=59

    I have to use min-height to get it to get bigger, without it you just get the height of the padding.

    Code:
    #product_detail {
    	min-height: 220px;
    	padding: 10px;
    	border:1px solid #DDD;
    	-moz-border-radius:5px;
    	-webkit-border-radius:5px;
    	-o-border-radius:5px;
    	border-radius:5px;
    	background:#FFF;
    	margin: 10px 20px 5px 0px;
    }
    Can anyone help me make it automatically adjust the size.

    Thanks
    Last edited by Ludatha; 10-24-2011 at 05:28 PM.

  • #2
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,338
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Add:

    overflow: auto;

    to your #gallery style rule.

    You should be able to then remove the min height style.
    Teed

  • Users who have thanked teedoff for this post:

    Ludatha (10-24-2011)

  • #3
    Regular Coder Ludatha's Avatar
    Join Date
    Jan 2008
    Posts
    250
    Thanks
    51
    Thanked 5 Times in 5 Posts
    Quote Originally Posted by teedoff View Post
    Add:

    overflow: auto;

    to your #gallery style rule.

    You should be able to then remove the min height style.
    Thanks!


  •  

    Posting Permissions

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