<?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[aggiungere un div ad una colonna centrata]]></title><description><![CDATA[<p dir="auto">Ciao a tutti!<br />
Il mio sito è centrato rispetto alla pagina, ecco il codice</p>
<pre><code class="language-php">body{
        margin: 0;
    padding: 0;
    text-align: center;
    background-color: #333;
    padding-top: 20px;
    
}



#centralone
{
        width: 640px;
    height: 625px;
    
    margin: auto;
    background: url("../images/home.png")no-repeat;
}
</code></pre>
<p dir="auto">Adesso io vorrei aggiungere un div a destra del mio corpo centrato in modo che rimanga centrato solo il corpo e il mio nuovo div venga spostato a destra...<br />
Come posso fare ?</p>
]]></description><link>https://dev.connect.gt/topic/109781/aggiungere-un-div-ad-una-colonna-centrata</link><generator>RSS for Node</generator><lastBuildDate>Mon, 30 Nov 2026 18:30:50 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/109781.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 08 Sep 2009 09:56:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to aggiungere un div ad una colonna centrata on Wed, 09 Sep 2009 10:33:01 GMT]]></title><description><![CDATA[<p dir="auto">Ecco , prova adesso che ho inserito un po' di testo</p>
<pre><code class="language-php">&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
&lt;title&gt;Documento senza titolo&lt;/title&gt;
&lt;link rel="stylesheet" type="text/css" href="css/stile_p.css" /&gt;

&lt;style&gt;
body{
        margin: 0;
    padding: 0;
    text-align: center;
    background-color: #333;
    padding-top: 20px;
    
    
}

html, body {
width: 100%;
} 



h1{
    font-size: 35px;
    text-decoration: none;
    color: #603813;
}


h1 a:link{
    font-size: 35px;
    
    color: #603813;
}


h1 a:visited{
    font-size: 35px;
    text-decoration: none;
    color: #603813;
}


h1 a:hover{
    font-size: 35px;
    text-decoration: none;
    color: #4D4D4D;
}


h1 a:active{
    font-size: 35px;
    text-decoration: none;
    color: #603813;
}

#centralone_home
{
    width: 640px;
    height: 626px;
    margin: auto;
    background-color: red;

}

#centralone_abbonati
{
        width: 640px;
    height: 626px;
    
    margin: auto;
background: url(../images/abbonati.png) no-repeat;

}


#centralone_grazie
{
        width: 640px;
    height: 435px;
    
    margin: auto;
    background: url(../images/grazie.png) no-repeat;

}


#centralone_archivio
{
        width: 640px;

    
    margin: auto;
    

}

body div{display: inline; border: 3px solid green; margin 10px;}

#sponsor
{
    
    width: 175px;
    height: 120px;
    background-color: white;
}  
&lt;/style&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;div id="centralone_home"&gt;
    centralone_home centralone_home centralone_home centralone_home centralone_home centralone_home centralone_home centralone_home centralone_home centralone_home
&lt;/div&gt;
&lt;div id="sponsor"&gt;
    sponsor
&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/post/855671</link><guid isPermaLink="true">https://dev.connect.gt/post/855671</guid><dc:creator><![CDATA[pettedemon]]></dc:creator><pubDate>Wed, 09 Sep 2009 10:33:01 GMT</pubDate></item><item><title><![CDATA[Reply to aggiungere un div ad una colonna centrata on Wed, 09 Sep 2009 10:24:20 GMT]]></title><description><![CDATA[<p dir="auto">Ciao,<br />
con qualche modifica a me è apparso.<br />
Prima di tutto devi inserire i contenuti nei div,<br />
altrimenti che vedi?</p>
<p dir="auto">Io ho utilizzato FF 3.5.2.</p>
<p dir="auto">Qui sotto il codice della pagina di test che mi sono creato in locale con i tuoi<br />
post.</p>
<pre><code class="language-php">&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
&lt;title&gt;Documento senza titolo&lt;/title&gt;
&lt;link rel="stylesheet" type="text/css" href="css/stile_p.css" /&gt;

&lt;style&gt;
body{
        margin: 0;
    padding: 0;
    text-align: center;
    background-color: #333;
    padding-top: 20px;
    
    
}

html, body {
width: 100%;
} 



h1{
    font-size: 35px;
    text-decoration: none;
    color: #603813;
}


h1 a:link{
    font-size: 35px;
    
    color: #603813;
}


h1 a:visited{
    font-size: 35px;
    text-decoration: none;
    color: #603813;
}


h1 a:hover{
    font-size: 35px;
    text-decoration: none;
    color: #4D4D4D;
}


h1 a:active{
    font-size: 35px;
    text-decoration: none;
    color: #603813;
}

#centralone_home
{
    width: 640px;
    height: 626px;
    margin: auto;
    background-color: red;

}

#centralone_abbonati
{
        width: 640px;
    height: 626px;
    
    margin: auto;
background: url(../images/abbonati.png) no-repeat;

}


#centralone_grazie
{
        width: 640px;
    height: 435px;
    
    margin: auto;
    background: url(../images/grazie.png) no-repeat;

}


#centralone_archivio
{
        width: 640px;

    
    margin: auto;
    

}

body div{display: inline; border: 3px solid green; margin 10px;}

#sponsor
{
    
    width: 175px;
    height: 120px;
    background-color: white;
}  
&lt;/style&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;div id="centralone_home"&gt;
    centralone_home
&lt;/div&gt;
&lt;div id="sponsor"&gt;
    sponsor
&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>
<p dir="auto">Ciao</p>
]]></description><link>https://dev.connect.gt/post/855673</link><guid isPermaLink="true">https://dev.connect.gt/post/855673</guid><dc:creator><![CDATA[mirkoagrati]]></dc:creator><pubDate>Wed, 09 Sep 2009 10:24:20 GMT</pubDate></item><item><title><![CDATA[Reply to aggiungere un div ad una colonna centrata on Wed, 09 Sep 2009 10:10:28 GMT]]></title><description><![CDATA[<p dir="auto">Ti posto un po' di codice in piu' comunque continua a non apparire nulla, forse sbaglio io ..</p>
<pre><code class="language-php">body{
        margin: 0;
    padding: 0;
    text-align: center;
    background-color: #333;
    padding-top: 20px;
    
    
}

html, body {
width: 100%;
} 



h1{
    font-size: 35px;
    text-decoration: none;
    color: #603813;
}


h1 a:link{
    font-size: 35px;
    
    color: #603813;
}


h1 a:visited{
    font-size: 35px;
    text-decoration: none;
    color: #603813;
}


h1 a:hover{
    font-size: 35px;
    text-decoration: none;
    color: #4D4D4D;
}


h1 a:active{
    font-size: 35px;
    text-decoration: none;
    color: #603813;
}

#centralone_home
{
    width: 640px;
    height: 626px;
    margin: auto;
    background: url(../images/home.png) no-repeat;

}

#centralone_abbonati
{
        width: 640px;
    height: 626px;
    
    margin: auto;
background: url(../images/abbonati.png) no-repeat;

}


#centralone_grazie
{
        width: 640px;
    height: 435px;
    
    margin: auto;
    background: url(../images/grazie.png) no-repeat;

}


#centralone_archivio
{
        width: 640px;

    
    margin: auto;
    

}

body div{display: inline;}

#sponsor
{
    
    width: 175px;
    height: 120px;
    background-color: white;
}
</code></pre>
<p dir="auto">e il codice della pagina</p>
<pre><code class="language-php">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
&lt;title&gt;Documento senza titolo&lt;/title&gt;
&lt;link rel="stylesheet" type="text/css" href="css/stile_p.css" /&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;div id="centralone_home"&gt;

&lt;/div&gt;

&lt;div id="sponsor"&gt;&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/post/855670</link><guid isPermaLink="true">https://dev.connect.gt/post/855670</guid><dc:creator><![CDATA[pettedemon]]></dc:creator><pubDate>Wed, 09 Sep 2009 10:10:28 GMT</pubDate></item><item><title><![CDATA[Reply to aggiungere un div ad una colonna centrata on Wed, 09 Sep 2009 10:04:40 GMT]]></title><description><![CDATA[<p dir="auto">Come non appare niente?</p>
<p dir="auto">hai fatto così?:</p>
<pre><code class="language-php">body div{display: inline;}

#sponsor
{
    
    width: 175px;
    height: 120px;
    background-color: white;
}
</code></pre>
]]></description><link>https://dev.connect.gt/post/855675</link><guid isPermaLink="true">https://dev.connect.gt/post/855675</guid><dc:creator><![CDATA[mirkoagrati]]></dc:creator><pubDate>Wed, 09 Sep 2009 10:04:40 GMT</pubDate></item><item><title><![CDATA[Reply to aggiungere un div ad una colonna centrata on Wed, 09 Sep 2009 09:18:14 GMT]]></title><description><![CDATA[<p dir="auto">Non funziona, anzi non mi appare piu' nulla</p>
]]></description><link>https://dev.connect.gt/post/855669</link><guid isPermaLink="true">https://dev.connect.gt/post/855669</guid><dc:creator><![CDATA[pettedemon]]></dc:creator><pubDate>Wed, 09 Sep 2009 09:18:14 GMT</pubDate></item><item><title><![CDATA[Reply to aggiungere un div ad una colonna centrata on Wed, 09 Sep 2009 09:05:09 GMT]]></title><description><![CDATA[<p dir="auto">Ciao,<br />
prova ad aggiungere la regola css:</p>
<p dir="auto">div{display: inline;}</p>
<p dir="auto">e togli il posizionamento assoluto al secondo div.</p>
<p dir="auto">Ciao</p>
]]></description><link>https://dev.connect.gt/post/855674</link><guid isPermaLink="true">https://dev.connect.gt/post/855674</guid><dc:creator><![CDATA[mirkoagrati]]></dc:creator><pubDate>Wed, 09 Sep 2009 09:05:09 GMT</pubDate></item><item><title><![CDATA[Reply to aggiungere un div ad una colonna centrata on Wed, 09 Sep 2009 08:29:31 GMT]]></title><description><![CDATA[<p dir="auto">Ciao mirkoagrati,<br />
ci avevo provato ma non sono riuscito a ottenere nessun risultato<br />
ecco il codice</p>
<pre><code>#centralone_home
{
    width: 640px;
    height: 626px;
    margin: auto;
    background: url(../images/home.png) no-repeat;

}

#sponsor
{
    
    width: 175px;
    height: 120px;
    background-color: white;
    position: absolute;
    top: 20px;
    right: 340px;
}
</code></pre>
<p dir="auto">e la pagina</p>
<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
&lt;title&gt;Documento senza titolo&lt;/title&gt;
&lt;link rel="stylesheet" type="text/css" href="css/stile.css" /&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;div id="centralone_home"&gt;

&lt;/div&gt;

&lt;div id="sponsor"&gt;&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>
<p dir="auto">E al ridimensionamento della pagina si sposta e non resta più dove vorrei...</p>
]]></description><link>https://dev.connect.gt/post/855668</link><guid isPermaLink="true">https://dev.connect.gt/post/855668</guid><dc:creator><![CDATA[pettedemon]]></dc:creator><pubDate>Wed, 09 Sep 2009 08:29:31 GMT</pubDate></item><item><title><![CDATA[Reply to aggiungere un div ad una colonna centrata on Wed, 09 Sep 2009 07:49:12 GMT]]></title><description><![CDATA[<p dir="auto">Ciao pettedemon,<br />
potresti provare semplicemente ad aggiungere il div nel flusso e con una regola css posizionarlo in modo assoluto.</p>
<p dir="auto">Questo ti dovrebbe venire facile perchè conosci a priori le dimensioni del DIV 'centralone'.</p>
<p dir="auto">Ciao</p>
]]></description><link>https://dev.connect.gt/post/855672</link><guid isPermaLink="true">https://dev.connect.gt/post/855672</guid><dc:creator><![CDATA[mirkoagrati]]></dc:creator><pubDate>Wed, 09 Sep 2009 07:49:12 GMT</pubDate></item></channel></rss>