Based on jQuery Image Element grid layout plug-in, jquery grid layout plug-in
The jQuery-Based Image Element grid layout plug-in is a jQuery plug-in jMosaic that can evenly arrange images or HTML elements into a grid layout. As follows:
Download Online Preview source code
Implementation code.
Html code:
<Center>
Css code:
body, html {padding: 0; margin: 0;}a {color: #3366CC;}.wrapper {width:900px; margin: 0 auto; font: normal normal 400 100%/1.5em georgia, serif; color: #222;}.wrapper h1 {font: normal 600%/100% georgia, serif; text-shadow: 0 -1px 1px rgba(255, 255, 255, 0.01); margin: 0 0 5px 0; text-align: center;}.wrapper h2 {font: normal 200%/100% georgia, serif; text-shadow: 0 -1px 1px rgba(255, 255, 255, 0.01); margin: 0 0 5px 0; text-transform: uppercase; }.wrapper h3 {font: normal 150%/100% georgia, serif; text-shadow: 0 -1px 1px rgba(255, 255, 255, 0.01); margin: 0 0 5px 0;}.wrapper hr {border: none; border-top: 1px solid #ddd;}.head p {font: normal 145%/1em georgia, serif; text-shadow: 0 -1px 1px rgba(255, 255, 255, 0.01); text-align: center;}.buttons a {display: inline-block; background: #ddd; color: #111; width: 39.5%; margin: 0 5%; border-radius: 3px; text-align: center; line-height: 2.6em; text-decoration: none;}.buttons a:hover {background: #3366CC; color: #fff;}.buttons { clear: both; margin: 5px 0px 20px 0px; }.wrapper pre {font: normal 87.5%/1.2em monospace, sans-serif; padding: 15px 30px 0px 30px; margin: 0; background: #eee; border-radius: 3px; display: block; overflow: auto;}.pictures {margin: 0px auto; width: 870px; padding: 0;}.blocks {margin: 0px auto; width: 70%; padding: 0;}
Via: http://www.w2bc.com/Article/43290