<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[problemi con margin, padding e IE]]></title><description><![CDATA[<p dir="auto">Ciao, sto realizzando un semplice layout in css per un sito<br />
Sono riuscito ad ottenere un layout quasi identico su Firefox 1.5, Opera 9, IE5, IE5.5, IE6 e IE7<br />
non riesco solo a risolvere un problema di margini tra il DIV "corpo" e il DIV "menu": IE6 e precedenti visualizzano 4px di margine tra questi 2 DIV, tutti gli altri browser invece ne visualizzano 0.<br />
Come posso eliminare questi 4px da IE?<br />
(Il codice è a fine messaggio)</p>
<p dir="auto">Grazie</p>
<p dir="auto">Giuseppe</p>
<h2>CSS:</h2>
<p dir="auto">body, html {margin:0; width:100%; height:100%; text-align:center; vertical-align:middle; background:#B58F76;}</p>
<p dir="auto">div#container2 {<br />
width:864px;<br />
height:564px;<br />
position:absolute;<br />
top:50%;<br />
left:50%;<br />
margin-left:-432px;<br />
margin-top: -282px;<br />
color:#fff;<br />
padding:0;<br />
background:#8a9;<br />
background:url(img/sfondo_pag.gif) no-repeat 0 0;<br />
background-color:#ECE3D8;<br />
}</p>
<p dir="auto">div#titolo {text-align:left; margin-left:162px; margin-top:13px; }</p>
<p dir="auto">div#corpo {height:391px; margin-top:5px;}</p>
<p dir="auto">div#menu {height:27px; margin-left:7px; margin-right:7px; margin-top:0; padding:-3PX; border:0; background-color:#000099; }</p>
<p dir="auto">div#footer {<br />
font-family:Georgia, "Times New Roman", Times, serif;<br />
font-size:11pt;<br />
color:#41332A;<br />
margin-top:10px;<br />
}</p>
<h2>div#footer a {color:#7D584E; text-decoration:none;}</h2>
<h2>HTML:</h2>
<p dir="auto">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" rel="nofollow ugc">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"&gt;<br />
&lt;html xmlns="<a href="http://www.w3.org/1999/xhtml" rel="nofollow ugc">http://www.w3.org/1999/xhtml</a>"&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt;<br />
&lt;title&gt;&lt;/title&gt;<br />
&lt;link href="stili.css" rel="stylesheet" type="text/css" /&gt;<br />
&lt;/head&gt;</p>
<h2>&lt;body&gt;<br />
&lt;div id="container2"&gt;<br />
&lt;div id="titolo"&gt;&lt;img src="" /&gt;&lt;/div&gt;<br />
&lt;div id="corpo"&gt;&lt;img src="" width="850" height="391" /&gt;&lt;/div&gt;<br />
&lt;div id="menu"&gt;ITALIANO ENGLISH&lt;/div&gt;<br />
&lt;div id="footer"&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</h2>
]]></description><link>https://dev.connect.gt/topic/19841/problemi-con-margin-padding-e-ie</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 15:49:34 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/19841.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 27 Oct 2006 09:46:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to problemi con margin, padding e IE on Fri, 27 Oct 2006 15:15:46 GMT]]></title><description><![CDATA[<p dir="auto">Aspetta un momento! ho tolto le proprietà height e width da img e lo spazio di 4 px è sparito su IE6. Prova a vedere....<br />
&lt;div id="corpo"&gt;&lt;img src="" /&gt;&lt;/div&gt;</p>
]]></description><link>https://dev.connect.gt/post/387917</link><guid isPermaLink="true">https://dev.connect.gt/post/387917</guid><dc:creator><![CDATA[sten]]></dc:creator><pubDate>Fri, 27 Oct 2006 15:15:46 GMT</pubDate></item><item><title><![CDATA[Reply to problemi con margin, padding e IE on Fri, 27 Oct 2006 13:19:03 GMT]]></title><description><![CDATA[<p dir="auto">io ho risolto impostando margin-top= -4px per div#menu; forse gli altri browser lo "digeriscono" perchè non hai impostato il posizionamento assoluto. Anche se come soluzione non è il massimo</p>
]]></description><link>https://dev.connect.gt/post/387915</link><guid isPermaLink="true">https://dev.connect.gt/post/387915</guid><dc:creator><![CDATA[sten]]></dc:creator><pubDate>Fri, 27 Oct 2006 13:19:03 GMT</pubDate></item></channel></rss>