Sono ancora in lotta con i CSS (ma riconosco di essere un "real beginner").<br>
Dunque, ho in mente uno schemino semplice semplice. Un "DIV" per l'intestazione a tutto schermo, poi sotto due "DIV" paralleli, "sinistra" (per il menu) e "destra" per il contenuto. Infine un ultimo "DIV" a tutto schermo per iconcine ecc.<br>
Orbene, il "destra" comincia <!--EZCODE BOLD START--><strong>sotto</strong><!--EZCODE BOLD END--> il "sinistra". Per farli stare in parallelo debbo specificare "p o s i t i o n: a b s o l u t e" e poi i margini in pixel. Però mi sa tanto che così facendo a seconda del browser e delle dimensioni font utilizzate si finisce per avere dei "DIV" sovrapposti.<br>
Chissà se mi sono spiegato... <!--EZCODE EMOTICON START : --><img src=http://www.ezboard.com/images/emoticons/ohwell.gif ALT=":"><!--EZCODE EMOTICON END-->
<p>_________________________________<br>
<!--EZCODE FONT START--><span style="color:blue;"><!--EZCODE ITALIC START--><em>Only two things are infinite, the universe and human stupidity, and I'm not sure about the former</em><!--EZCODE ITALIC END-->. Albert Einstein</span><!--EZCODE FONT END--></p><i></i>
Domandina CSS
Moderatori: Supervisor, Moderatori Software e Programmazione
-
rebelia
- Dio maturo

- Messaggi: 7989
- Iscritto il: 17 lug 2003 07:22
...
prova con float: left; per uno e float: right; per l'altro e con width: 50%;<br>
<br>
in questo modo dovrebbero stare in parallelo e nn sovrapporsi <!--EZCODE EMOTICON START :) --><img src=http://www.ezboard.com/images/emoticons/smile.gif ALT=":)"><!--EZCODE EMOTICON END-->
<p></p><i>Edited by: <A HREF=http://p196.ezboard.com/bzeus41361.show ... rebelia</A> at: 22/5/04 10:15<br></i>
<br>
in questo modo dovrebbero stare in parallelo e nn sovrapporsi <!--EZCODE EMOTICON START :) --><img src=http://www.ezboard.com/images/emoticons/smile.gif ALT=":)"><!--EZCODE EMOTICON END-->
<p></p><i>Edited by: <A HREF=http://p196.ezboard.com/bzeus41361.show ... rebelia</A> at: 22/5/04 10:15<br></i>
-
ioSOLOio
- Amministratore

- Messaggi: 16342
- Iscritto il: 12 set 2003 17:01
Re: ...
<br>
in sostanza vorresti un header, un footer e poi due colonne nel mezzo ?<br>
<br>
quello che ti riporto da anche una colonna centrale oltre che quelle sinistra e destra....<br>
<br>
il css:<br>
<!--EZCODE CODE START--><pre> .HEADER {
background-color: #E8E8E8;
width: 100%;
height: 50px;
border: 0.5pt dashed #0A50A1;
}
.BOX {
width: 100%;
height: 100px;
background-color: #FFFFFF;
border: 0.5pt dashed #0A50A1;
margin: 2px 0px;
}
.FOOTER{
background-color: #E8E8E8;
width: 100%;
height: 50px;
border: 0.5pt dashed #0A50A1;
}
.SX{
width:20%;
height:100%;
background-color:#000080;
float:left;
}
.DX{
width:20%;
height:100%;
background-color:#000080;
float:right;
}
.CENTRO{
width:100%;
height:100%;
background-color:#990000;
} </pre><!--EZCODE CODE END--><br>
<br>
mentre nel body:<br>
<br>
<!--EZCODE CODE START--><pre>
<div class="HEADER"></div>
<div class="BOX">
<div class="SX"></div>
<div class="DX"></div>
<div class="CENTRO"></div>
</div>
<div class="FOOTER"></div>
</pre><!--EZCODE CODE END-->
<p></p><i></i>
in sostanza vorresti un header, un footer e poi due colonne nel mezzo ?<br>
<br>
quello che ti riporto da anche una colonna centrale oltre che quelle sinistra e destra....<br>
<br>
il css:<br>
<!--EZCODE CODE START--><pre> .HEADER {
background-color: #E8E8E8;
width: 100%;
height: 50px;
border: 0.5pt dashed #0A50A1;
}
.BOX {
width: 100%;
height: 100px;
background-color: #FFFFFF;
border: 0.5pt dashed #0A50A1;
margin: 2px 0px;
}
.FOOTER{
background-color: #E8E8E8;
width: 100%;
height: 50px;
border: 0.5pt dashed #0A50A1;
}
.SX{
width:20%;
height:100%;
background-color:#000080;
float:left;
}
.DX{
width:20%;
height:100%;
background-color:#000080;
float:right;
}
.CENTRO{
width:100%;
height:100%;
background-color:#990000;
} </pre><!--EZCODE CODE END--><br>
<br>
mentre nel body:<br>
<br>
<!--EZCODE CODE START--><pre>
<div class="HEADER"></div>
<div class="BOX">
<div class="SX"></div>
<div class="DX"></div>
<div class="CENTRO"></div>
</div>
<div class="FOOTER"></div>
</pre><!--EZCODE CODE END-->
<p></p><i></i>
-
rebelia
- Dio maturo

- Messaggi: 7989
- Iscritto il: 17 lug 2003 07:22
...
<!--EZCODE CODE START--><pre>
.SX{
width:20%;
height:100%;
background-color:#000080;
<!--EZCODE BOLD START--><strong>float:left;</strong><!--EZCODE BOLD END-->
}
.DX{
width:20%;
height:100%;
background-color:#000080;
<!--EZCODE BOLD START--><strong>float:right;</strong><!--EZCODE BOLD END-->
}
</pre><!--EZCODE CODE END--><br>
appunto <!--EZCODE EMOTICON START :) --><img src=http://www.ezboard.com/images/emoticons/smile.gif ALT=":)"><!--EZCODE EMOTICON END-->
<p></p><i></i>
.SX{
width:20%;
height:100%;
background-color:#000080;
<!--EZCODE BOLD START--><strong>float:left;</strong><!--EZCODE BOLD END-->
}
.DX{
width:20%;
height:100%;
background-color:#000080;
<!--EZCODE BOLD START--><strong>float:right;</strong><!--EZCODE BOLD END-->
}
</pre><!--EZCODE CODE END--><br>
appunto <!--EZCODE EMOTICON START :) --><img src=http://www.ezboard.com/images/emoticons/smile.gif ALT=":)"><!--EZCODE EMOTICON END-->
<p></p><i></i>
-
pincopallino
- Dio maturo

- Messaggi: 3396
- Iscritto il: 05 mag 2002 07:05
Re: ...
Uhm...<br>
il "float" left funziona, il right mi ricrea il medesimo problema. Cercherò di capire il perché.<br>
Per intanto, grasssie! <!--EZCODE EMOTICON START ;) --><img src=http://www.ezboard.com/images/emoticons/wink.gif ALT=";)"><!--EZCODE EMOTICON END-->
<p>_________________________________<br>
<!--EZCODE FONT START--><span style="color:blue;"><!--EZCODE ITALIC START--><em>Only two things are infinite, the universe and human stupidity, and I'm not sure about the former</em><!--EZCODE ITALIC END-->. Albert Einstein</span><!--EZCODE FONT END--></p><i></i>
il "float" left funziona, il right mi ricrea il medesimo problema. Cercherò di capire il perché.<br>
Per intanto, grasssie! <!--EZCODE EMOTICON START ;) --><img src=http://www.ezboard.com/images/emoticons/wink.gif ALT=";)"><!--EZCODE EMOTICON END-->
<p>_________________________________<br>
<!--EZCODE FONT START--><span style="color:blue;"><!--EZCODE ITALIC START--><em>Only two things are infinite, the universe and human stupidity, and I'm not sure about the former</em><!--EZCODE ITALIC END-->. Albert Einstein</span><!--EZCODE FONT END--></p><i></i>
-
rebelia
- Dio maturo

- Messaggi: 7989
- Iscritto il: 17 lug 2003 07:22
...
prova a postare il css, che diamo un'occhiata <!--EZCODE EMOTICON START :) --><img src=http://www.ezboard.com/images/emoticons/smile.gif ALT=":)"><!--EZCODE EMOTICON END--> <br>
<br>
io ho usato il float la sett scorsa per un lavoro (avevo il medesimo problema) ed ha funzionato... <!--EZCODE EMOTICON START :rolleyes --><img src=http://www.ezboard.com/images/emoticons/eyes.gif ALT=":rolleyes"><!--EZCODE EMOTICON END-->
<p></p><i></i>
<br>
io ho usato il float la sett scorsa per un lavoro (avevo il medesimo problema) ed ha funzionato... <!--EZCODE EMOTICON START :rolleyes --><img src=http://www.ezboard.com/images/emoticons/eyes.gif ALT=":rolleyes"><!--EZCODE EMOTICON END-->
<p></p><i></i>
-
pincopallino
- Dio maturo

- Messaggi: 3396
- Iscritto il: 05 mag 2002 07:05
Re: ...
<!--EZCODE QUOTE START--><blockquote><strong><em>Quote:</em></strong><hr>prova a postare il css, che diamo un'occhiata<hr></blockquote><!--EZCODE QUOTE END--><br>
Il fatto è che non sono sicurissimo che la "colpa" sia del CSS, e non voglio postare il codice del sito, visto che è in costruzione (niente di segreto, roba di geologia, ma visto che è un lavoro richiestomi, non posto delle "preview").<br>
Comunque il "float: left" sembra funzionare, grassie! <!--EZCODE EMOTICON START :-* --><img src=http://www.ezboard.com/image/posticons/ ... eating.gif ALT=":-*"><!--EZCODE EMOTICON END-->
<p>_________________________________<br>
<!--EZCODE FONT START--><span style="color:blue;"><!--EZCODE ITALIC START--><em>Only two things are infinite, the universe and human stupidity, and I'm not sure about the former</em><!--EZCODE ITALIC END-->. Albert Einstein</span><!--EZCODE FONT END--></p><i></i>
Il fatto è che non sono sicurissimo che la "colpa" sia del CSS, e non voglio postare il codice del sito, visto che è in costruzione (niente di segreto, roba di geologia, ma visto che è un lavoro richiestomi, non posto delle "preview").<br>
Comunque il "float: left" sembra funzionare, grassie! <!--EZCODE EMOTICON START :-* --><img src=http://www.ezboard.com/image/posticons/ ... eating.gif ALT=":-*"><!--EZCODE EMOTICON END-->
<p>_________________________________<br>
<!--EZCODE FONT START--><span style="color:blue;"><!--EZCODE ITALIC START--><em>Only two things are infinite, the universe and human stupidity, and I'm not sure about the former</em><!--EZCODE ITALIC END-->. Albert Einstein</span><!--EZCODE FONT END--></p><i></i>





