PDA

View Full Version : [CSS] fare in modo che un div "segua" quello precedente..


MrEnrich
21-12-2007, 00:13
mi spiego.. ho un menu a cascata. se si espande..si sovrappone ad un box che ho in basso.. si può fare in modo che il box sottostante segua a ruota il menu? cioè se il menu è chiuso.. questo sta subito dopo..se si espande..va subito dopo..

grazie

kk3z
21-12-2007, 10:33
Sì, si può fare...

MrEnrich
21-12-2007, 12:41
Sì, si può fare...

bene, suggerimenti?

kk3z
21-12-2007, 15:24
Serve il codice :)

MrEnrich
21-12-2007, 17:08
qui per esempio:

<div id="field">
<h2>Structure of the Course - Overview</H2>
<img class="center" src="img/struct.jpg" alt=""><br>
The Master Course will confer a total of 120 ECTS. Its structure is illustrated in figure and it consists of:<br><br>

l'immagine va a finire sopra il div field.. in quanto field ha le coordinate stabilite.

codice cssimg.center {
position:absolute;
top: 7em;
left: 20em;
}

#field {
position:absolute;
top: 26em;
left: 43em;
right: 15em;
bottom: 20em;
text-align:justify;
font-size:10px;
font-family:Verdana;
height: 3em;
width: 68.5em;