Liquid Layout without width setting
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" > < html xmlns= "http://www.w3.org/1999/xhtml" > <head> <title>Liquid Layout</title> <meta http-equiv= "Content-Type" content= "text/html; charset=iso-8859-1" /> <style type= "text/css" > body { margin: 10 px 40 px; padding: 0 ; text-align: center; background: #f0f0f0; } #wrapper { text-align: left; background: #dade75; border: 1 px solid silver; } #header { background: # 272727 ; padding: 10 px 15 px 10 px 13 px; } #content-wrapper { background: #fff; float : right; width: 75 %; } #content-inner { padding: 5 px 15 px 0 15 px; } #navigation { width: 25 %; float : left; padding-top: 15 px; } #footer { clear: both; } </style> </head> < body > <div id= "wrapper" > <div id= "header" >Header</div> <div id= "content-wrapper" > <div id= "content-inner" > <p> this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. </p> </div> </div> <div id= "navigation" > <ul> <li><a href= "" >Day 1 </a></li> <li><a href= "" >Day 2 </a></li> <li><a href= "" >Day 3 </a></li> <li><a href= "" >Day 4 </a></li> <li><a href= "" >Day 5 </a></li> </ul> </div> <div id= "footer" ></div> </div> </ body > </ html >
HTML code for linking to this page:
Related in same category :