Salve a tutti.
Ho il seguente codice nella pagina index.php
e questo nello style.csscodice:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>You Affiliate</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="style.css" rel="stylesheet" type="text/css"> <style type="text/css"> <!-- body { text-align: center; margin: 0 auto; background-color:#0099FF } --> </style></head> <body> <div id="header"> <div id="logo"></div> </div> <div id="menu"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <td width="20%" height="40" style="background-image: url(img/pulsante.jpg)">Homepage</td> </table> </div> </body> </html>
Il mio problema è il menu. Perchè con solo questo td:codice:#header { background-color: #0269d1; width: 100%; height: 95px; } #logo { background-image: url(img/logo.png); background-repeat: no-repeat; float:left; height: 95px; width: 300px; } #menu { height: 40px; width: 100%; color:#FFFFFF; font-weight:bold; float:left; }
Si riempie la pagina? E la scritta homepage, che dovrebbe essere sul primo è al centro.codice:<td width="20%" height="40" style="background-image: url(img/pulsante.jpg)">Homepage</td>
La pagina è QUESTA
COme faccio a poter inserire una voce per ogni td senza che si rovini tutto?

Rispondi quotando