Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CSS Min Height

Posted on 2014-01-23
2
Medium Priority
?
338 Views
Last Modified: 2014-01-23
Why I can't figure this out is beyond me.  I want this page to have a minimum height when no year has been selected but to expand as needed based on what has been selected:

http://www.gopherstateevents.com/series/series_info.asp?year=2014

Any help would be much appreciated.
0
Comment
Question by:Bob Schneider
2 Comments
 
LVL 12

Accepted Solution

by:
jmcmunn earned 2000 total points
ID: 39805329
If you simply want a div (your main content div in this case) to have a minimum height, but then resize to expand when content is there, use these two CSS consecutively (with whatever height you want):

min-height: 100px;
height: auto;
0
 

Author Closing Comment

by:Bob Schneider
ID: 39805344
Awesome.  Thanks!!
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question