Salve,
secondo voi è corretto usare questo metodo per il Layout a tre colonne di un portale web ?
cosa è meglio usare (margini negativi float ecc...) ?
grazie !![]()
codice:<!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> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Test</title> <style type="text/css" media="screen"> * { margin: 0; padding: 0; } #wrapper { text-align: left; margin: 0 auto; background-color: #069; } #contentfloatholder { width: 100%; position: relative; } #center { float: left; width: 100%; margin-right: -95%; } #centerpad { margin: 0 170px; background-color: #FFF; } #left { float: left; width: 170px; margin-left: -5%; } #right { float:right; width: 170px; } #footer { clear: both; text-align: center; background-color: #036; color: #FFF; } </style> </head> <body> <div id="wrapper"> <div id="contentfloatholder"> <div id="center"> <div id="centerpad"> <h1>Center</h1> Test</p> Test</p> Test</p> </div> </div> <div id="right"> <h1>Right</h1> </div> <div id="left"> <h1>Left</h1> </div> </div> <div id="footer"> Footer</p> </div> </div> </body> </html>

Rispondi quotando
