Revision: 37310
Updated Code
at December 8, 2010 07:58 by bobbym245
Updated Code
<!DOCTYPE HTML> <html lang="en_US"> <head> <meta charset="UTF-8"> <title>Aligning divs on one line using a floated left ul</title> <link rel="stylesheet" type="text/css" href="reset.css" media="all"> <style type="text/css"> ul li{ float:left; } ul li div{ margin-right:15px; } ul{ list-style:none; } .one, .two{ width:200px; height:200px; overflow:hidden; background-color:red; -webkit-border-radius:8px; } </style> </head> <body> <div class="container"> <ul> <li> <div class="one"></div> </li> <li> <div class="two"></div> </li> </ul> </div> </body> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript" src="../js/pngfix.js"></script> </html>
Revision: 37309
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 8, 2010 07:57 by bobbym245
Initial Code
<!DOCTYPE HTML> <html lang="en_US"> <head> <meta charset="UTF-8"> <title>Aligning divs on one line using a floated left ul</title> <link rel="stylesheet" type="text/css" href="reset.css" media="all"> <style type="text/css"> ul li{ float:left; } ul li div{ margin-right:15px; } ul{ list-style:none; } .one, .two{ width:200px; height:200px; overflow:hidden; background-color:red; -webkit-border-radius:8px; } </style> </head> <body> <div class="container"> <ul> <li> <div class="one"></div> </li> <li> <div class="two"></div> </li> </ul> </div> </body> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript" src="../js/pngfix.js"></script> </html>
Initial URL
Initial Description
The css style's in the <style></style> tags are important for this snippet to work.
Initial Title
Aligning divs on one line using a floated left unorderd list
Initial Tags
css, list, textmate, style, line
Initial Language
HTML