<?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[Creazione layout con sfondo sia su body sia su footer]]></title><description><![CDATA[<p dir="auto">Ciao a tutti,<br />
ho realizzato un layout con sfondo sia su body e main_container (il container che tiene tutto) e sia sul footer.<br />
Nella costruzione mi sono imbattuta in questo problema:<br />
se non imposto il container con il float questo non si adatta al contenuto ma rimane a misura fissa se all'interno inserisco altri div.<br />
Impostando il float però il main container si riduce di altezza, cioè include solo gli elementi che non hanno float.<br />
Cosa ho sbagliato??</p>
<p dir="auto">questo è il css</p>
<p dir="auto"><a href="/hashtags/maincontainer">#main_container</a> { /<em>contiene tutto tranne il footer</em>/<br />
margin: auto;<br />
width: 948px;<br />
padding: 0 26px;<br />
background:url(../images/bck_cont.gif) no-repeat left top;<br />
}</p>
<p dir="auto">/<em>HEADER</em>/<br />
<a href="/hashtags/header">#header</a> {<br />
margin: auto;<br />
width: 948px;<br />
height:156px;<br />
}</p>
<p dir="auto">/<em>FASCIA</em>/<br />
<a href="/hashtags/fascia">#fascia</a>{<br />
width:948px;<br />
height:322px;<br />
border-bottom:3px solid <a href="/hashtags/006ca1">#006ca1</a>;<br />
}</p>
<p dir="auto">/<em>CONTAINER</em>/<br />
<a href="/hashtags/container">#container</a> {<br />
width: 948px;<br />
height: auto !important;<br />
height: 600px;<br />
min-height: 600px;<br />
padding:0;<br />
padding-top:20px;<br />
float:left;<br />
clear:both;<br />
}</p>
<p dir="auto">/<em>FOOTER</em>/<br />
<a href="/hashtags/contfooter">#contfooter</a> {<br />
width:100%;<br />
float:left;<br />
clear:both;<br />
background:#fff url(../images/sfondo.gif) bottom repeat-x;<br />
}<br />
<a href="/hashtags/footer">#footer</a>{<br />
width:1000px;<br />
height:67px;<br />
text-align:center;<br />
margin:0 auto;<br />
margin-top:25px;<br />
background:url(../images/sfondo_bottom.gif) bottom left no-repeat;<br />
}</p>
]]></description><link>https://dev.connect.gt/topic/117521/creazione-layout-con-sfondo-sia-su-body-sia-su-footer</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 17:33:58 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/117521.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 17 Dec 2009 12:55:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Creazione layout con sfondo sia su body sia su footer on Mon, 28 Dec 2009 16:22:34 GMT]]></title><description><![CDATA[<p dir="auto">Ciao,<br />
non ho ben capito sinceramente, potresti postare anche la pagina interessata?</p>
<p dir="auto">Comunque in questi casi potrebbe essere una soluzione l'inserimento di un " &lt;div style='clear:both'&gt;&lt;/div&gt; " dopo l'ultimo oggetto che il contenitore contiene....</p>
]]></description><link>https://dev.connect.gt/post/879572</link><guid isPermaLink="true">https://dev.connect.gt/post/879572</guid><dc:creator><![CDATA[pgmedia]]></dc:creator><pubDate>Mon, 28 Dec 2009 16:22:34 GMT</pubDate></item></channel></rss>