Solved

set the min-height of the div does not work

Posted on 2013-01-13
3
438 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
  • 2
3 Comments
 
LVL 25

Accepted Solution

by:
Kyle Hamilton earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
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 …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

867 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now