Oct
Setting Equal Heights with jQuery
By: Mark Dijkstra In: Design jQuery
Creating the visual effect of equal-height columns or content boxes has been a challenge ever since we abandoned table-based layouts.
Hello you, if you are new here, you might want to subscribe to our RSS feed for updates on this article and our site.
xWhen developing complex web applications or site designs we’ve found that it often makes the most sense from a usability and performance standpoint to use a simple JavaScript workaround: our equalHeights() function determines the heights of all sibling elements in a container, and then sets each element’s minimum height to that of the tallest element. When JavaScript is disabled, the boxes or columns appear with varying heights, but the content remains legible and the page is still completely usable.
See a demo here
Related Posts
Keep reading with more great articles!
More Categories
- Adobe AIR
- Advertisement
- AJAX
- Analytics
- Animations
- Announcement
- API
- Bookmark
- Browser
- Calendar
- Charts
- CMS
- CSS
- Design
- Desktop
- E-commerce
- Editor
- Fireworks
- Flash
- Forms
- Forum
- Framework
- FreeBee
- Gallery
- Gimp
- Giveaway
- Icons
- Illustrator
- Images
- Inspiration
- Interview
- Javascript
- jQuery
- Layout
- Menu
- MooTools
- Photoshop
- PHP
- Poll
- Popup
- Prototype
- Resources
- RSS
- Script.aculo.us
- Site of the month
- Stats
- Tables
- Template
- Tips and tricks
- Tools
- Tooltip
- Tutorials
- Upload
- Vector
- Video
- Web OS
- Wordpress
Two ebooks give away at OpenSourceHunter
55 Free and beautiful WordPress themes
Three (printed)books from Packt Publishing giveaway
26 cool and useful jQuery tips, tricks & solutions
A collection of cool Mootools plugins
The best 44 photoshop text effects tutorials on the web!
Coldfusion Hosting
Site of the month: February
208 free and fresh RSS Feed web buttons
No Comments
As you can see there are no comments, so write the first one!Add Your Comment
Your name
September 3, 2010
We use Gravatars on OpensourceHunter, they are little icons that appear next to your name on this site and on many others. You can get a Gravatar account for free and any other site that supports it will show your avatar too. Get your Gravators account here!