/ Published in: HTML
URL: http://tympanus.net/codrops/2012/11/06/gamma-gallery-a-responsive-image-gallery-experiment/
Just a demo I was working on to create resizable search results, until I found Masonry and GammaGallery... look into those for a more complete version of this concept (if you don't mind including an external library), or, use this as a base for building your own.
Expand |
Embed | Plain Text
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <style type="text/css"> .grid { width:100%; } #search-results { margin:0 auto; text-align:center; } #search-results li { height:50px; text-align:left; border:1px solid; margin:0px; padding:0px; float:left; width:33%; list-style-type:none; } #search-results li:hover { background:goldenrod; cursor:pointer; } #search-results .even { background:lightsalmon; } #search-results .odd { background:lightgray; } </style> </head> <body> <!-- Search Results Grid --> <div class="grid"> <ol id="search-results"> <li class="even"> <div> </div> <div> <div class="desc"> Some text from the META description tag... </div> </div> </li> <li class="odd"> <div> </div> <div> <div class="desc"> Some text from the META description tag... </div> </div> </li> <li class="even"> <div> </div> <div> <div class="desc"> Some text from the META description tag... </div> </div> </li> </ol> </div> </body> </html>
You need to login to post a comment.
