Salve a tutti,
sono abbastanza nuovo all'utilizzo dei CSS, e sto trovando notevoli problemi nel posizionare il footer in fondo alla pagina del sito che sto realizzando.
Ho provato a seguire le indicazioni che si trovano QUI ma il solo risultato ottenuto è che il footer è sparito dalla pagina...![]()
Ecco il CSS attuale:
la miriade di commenti è dovuta ai vari tentativi che sto facendo... ogni aiuto sarà apprezzato!codice:/* Stili di elementi precisi */ h1, h2, h3, h4, h5, h6 { font-weight: bold; } th { font-weight: bold; text-align: center; } table td, table th { padding: 2px; vertical-align: middle; } strong { font-weight: bold; } em { font-style: italic; } body { /* width: 980px;*/ /* margin: 0px auto;*/ /* position: absolute;*/ /* left: 20px;*/ /* right: 20px;*/ margin: 0px; padding: 0px; height: 100%; /* min-height: 100%;*/ /* min-height: 600px;*/ font-family: "Times New Roman", Times, serif; /* font-family: Arial, "DejaVu Sans", "Liberation Sans", Freesans, sans-serif;*/ /* font-size: 12px;*/ background-color: #CCCCCC; } #container { min-height: 100%; position: relative; width: 98%; margin: 0px auto; } #content { position: absolute; top: 105px; left: 205px; right: 5px; /* height: 500px;*/ /* border: 1px solid green;*/ /* font-size: 15px;*/ } #header { position: absolute; top: 0px; left: 0px; width: 100%; clear: both; height: 100px; /* display: table;*/ /* border: 1px solid red;*/ text-align: center; font-family: "Lucida Handwriting", Times, serif; color: violet; } /*#header h1 { display: table-cell; vertical-align: middle; font-size: 30px; } #header h2 { display: table-cell; vertical-align: middle; font-size: 20px; }*/ #footer { position: absolute; bottom: 0px; /* left: 0px;*/ width: 100%; /* clear: both;*/ height: 100px; /* border: 1px solid blue;*/ text-align: center; font-size: 12px; } #left { position: absolute; top: 105px; left: 0px; width: 200px; height: 500px; /* border: 1px solid orange;*/ font-size: 12px; } #mainmenu { /* position: absolute;*/ width: 100%; } #mainmenu > li { /* float: left;*/ /* width: 85%;*/ list-style-type: none; margin-left: 0px; /* display: table;*/ } #mainmenu > li > a { width: 95%; display: block; height: 35px; line-height: 35px; text-align: center; text-decoration: none; background-color: pink; color: black; /* font-weight: bold;*/ font-size: 21px; font-family: "Monotype Corsiva", Times, serif; } #mainmenu > li > a:hover { background-color: violet; color: white; }

Rispondi quotando