| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| vinedomains.com | Let say, I have this example. Code: <div id="container"> <div class="contentA left">Lorem lipsum</div> <div class="contentB right">Lorem lipsum</div> </div> What is the best method (must be validated) to make the container's height 100% or fluid without declaring a fixed height value? I seems to have some problem with this whenever there is floats inside the div. Before, I used to use this: Code: #container {
overflow: auto;
height: 100%;
min-height: 100%;
}
__________________ Domains For Sale: HUMOO.com | CAFOO.com | VAJOO.com | PEPOO.com | MOCAU.com | JASLI.com | LUVVO.com | DINOMO.com | MajorBlogs.com | LatestMovies.net |
| |
| | #4 (permalink) |
| vinedomains.com | I think I've found a better way. Silly me. Just insert the following inside the div and it will auto expand. Code: #container {
overflow: hidden;
}
__________________ Domains For Sale: HUMOO.com | CAFOO.com | VAJOO.com | PEPOO.com | MOCAU.com | JASLI.com | LUVVO.com | DINOMO.com | MajorBlogs.com | LatestMovies.net |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |