www.webdeveloper.com
Results 1 to 3 of 3

Thread: css height problem

  1. #1
    Join Date
    Nov 2010
    Posts
    6

    css height problem

    The content wrapper (called in my css: drop-shadow curls) is not expanding to fit whatever content i add. it's driving me crazy. what do i have to do to make it work? I don't want to have to define a static width, because it's going to change with every page.

    here's where i'm working on it
    http://smartcampusdeals.com/index3.html

  2. #2
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    That is because you have some floated divs inside the parent div. The floated elements are not part of the parent's overflow. To solve that, there are several workarounds. A simple one is to add a last, empty div, to clear the float
    Code:
    <div id="main">
    ...
    <div style="clear:both"></div>
    </div>

  3. #3
    Join Date
    Nov 2010
    Posts
    6
    i changed my code around slightly and used that too, but it still isn't working >_<

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles