Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it
    Registrato dal
    Dec 2010
    Messaggi
    69

    Come fare una colonna con un div?

    Ciao a tutti... vorrei fare un colonna centrale del mio sito web come nell'esempio che ho allegato.
    Grazie anticipatamente!
    Immagini allegate Immagini allegate

  2. #2
    codice:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Documento senza titolo</title>
    <style type="text/css">
    <!--
    html, body {
    	margin: 0;
    	padding: 0
    }
    #contenitore {
    	clear: both;
    	height: 100%;
    	width: 100%;
    }
    .col100 {
    	height: 100px;
    	width: 100%;
    }
    .col50 {
    	float: left;
    	height: 800px;
    	width: 50%;
    }
    #clear {
    	clear: both;
    }
    .back1 {
    	background: #999;
    }
    .back2 {
    	background: #666;
    }
    -->
    </style>
    </head>
    
    <body>
    <div id="contenitore">
      <div class="col100 back1"></div>
      <div class="col100 back2"></div>
      <div class="col50 back1"></div>
      <div class="col50 back2"></div>
      <div id="clear"></div>
    </div>
    </body>
    </html>

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.