?
Solved

set the min-height of the div does not work

Posted on 2013-01-13
3
Medium Priority
?
455 Views
Last Modified: 2013-01-13
I want to set the minimum height of the div and then if the content grows then the height should grow. I have done some googling but nothing has worked for so far. The page is http://nkarch.lifeintheuktest.co/the-work.aspx.

i want to set the minimum height to 800px. At the moment i have set the height of mainContainer to 1000x as the min height not working.
0
Comment
Question by:mmalik15
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 25

Accepted Solution

by:
Kyle Hamilton earned 2000 total points
ID: 38772166
You have floated elements in #ProjectsGrid, so to make sure the container expands, you need to specify overflow:hidden in #ProjectsGrid

.mainContainer {
margin: 0 auto;
padding: 0;
width: 960px;
background-color: black;
min-height: 800px;
margin-bottom: 0px;
}

#ProjectsGrid {
padding-left: 3px;
margin-top: 2em;
overflow: hidden;
}

Open in new window

0
 

Author Closing Comment

by:mmalik15
ID: 38772201
perfect buddy
0
 
LVL 25

Expert Comment

by:Kyle Hamilton
ID: 38772223
:)
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

718 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