Results 1 to 1 of 1

Thread: constrained div proportions in fluid layout

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Vancouver, BC

    constrained div proportions in fluid layout

    I have a div container that i want to resize with the browser to a max/min width and height.

    Let's say the maximum width is 960px and the minimum is 500px.

    How can I have the height of this div adjust and constrain the dimensions with CSS?

    Is it possible? My CSS skills go out the window when I have to start playing with percentages and ratios..

    Also, my element is centered in the browser, adn I don't want the browser width to be the same as the element before the resizing begins - ie, I would like there to be always right and left margin.
    Last edited by Jerico; 06-29-2011 at 05:23 PM.

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