CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
JavaScript Jungle
[Solved] Javascript EqualHeight Fix???
smithaa99
Permalink to comment
#
December 2011
I had used this on another page and it made the columns level out perfectly.
http://www.onedollaronebrick.com/
There is a gap under the main content area, but editing margin-height in the style.css file doesn't seem to fix it.
What can I do to fix this?
Thanks!
Adam
FearDan
Permalink to comment
#
December 2011
The height is not equals because second column has additionally padding-top, padding is not included in height in the box model. Try to add padding-top top inside element, or use css property
box-sizing: border-box
smithaa99
Permalink to comment
#
December 2011
Thank you Dan, you are the best
Add a Comment
http://www.onedollaronebrick.com/
There is a gap under the main content area, but editing margin-height in the style.css file doesn't seem to fix it.
What can I do to fix this?
Thanks!
Adam