Grow your CSS skills. Land your dream job.

Extending Height of Containing Div

  • # October 28, 2009 at 11:13 am

    This problem arose when trying to view this site on an iPhone.

    http://ezwebserver.com/27683/index.html

    Looks fine now, but this is what I want. If the size of the #greybox (Superior Service) was to become much taller(as it does on iPhone) How could it get it’s background or #ship div to also grow in height automatically with it?

    Thanks Guys and Girls

    # October 28, 2009 at 11:49 am

    This is an issue i have a lot and forget to catch:

    I hate giving answers straight out but this one is hard to "lead you to"

    remove the height on #ship and add overflow: hidden

    in #greybox change your position to relative.

    You may want to add some margin or padding to get grey box off the bottom of ship. Hope that helped.

    # October 28, 2009 at 12:32 pm

    Thanks.
    I need to study overflow: hidden

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".