Visualizzazione dei risultati da 1 a 5 su 5
  1. #1
    Utente di HTML.it L'avatar di henry78
    Registrato dal
    May 2001
    Messaggi
    1,264

    posizionare i livelli.... ma come??

    ciao a tutti...

    sto provando ad impaginare il mio primo sito con i css...


    vorrei avere a sinistra il div "navigation"

    e a drestra uno sotto l'altro i div "content" e "extra"....

    NON RIESCO! Il div "extra" si posiziona a sinistra sotto "navigation"...

    COME MAI???


    div#container{width:760px; margin-left: 6px}

    div#content{float:right;width:380px}
    div#navigation{float:left;width:380px}
    div#extra{float:right;width:380px}
    div#footer{clear:both;width:100%}

  2. #2
    Utente di HTML.it
    Registrato dal
    Sep 2001
    Messaggi
    21,188
    Posta anche il codice HTML relativo.
    E per sicurezza metti a zero tutti i margini, padding e border
    Nuova politica di maggiore severita` sui titoli delle discussioni: (ri)leggete il regolamento
    No domande tecniche in messaggi privati

  3. #3
    Utente di HTML.it L'avatar di henry78
    Registrato dal
    May 2001
    Messaggi
    1,264
    eccolo:

    <body>
    <div id="container">


    <div id="content">


    1) Content here. column long long column very long fill fill fill long text text column text silly very make long very fill silly make make long make text fill very long text column silly silly very column long very column filler fill long make filler long silly very long silly silly silly long filler make column filler make silly long long fill very.</p>


    very make make fill silly long long filler column long make silly silly column filler fill fill very filler text fill filler column make fill make text very make make very fill fill long make very filler column very long very filler silly very make filler silly make make column column </p>


    fill long make long text very make long fill column make text very silly column filler silly text fill text filler filler filler make make make make text filler fill column filler make silly make text text fill make very filler column very </p>


    column text long column make silly long text filler silly very very very long filler fill very fill silly very make make filler text filler text make silly text text long fill fill make text fill long text very silly long long filler filler fill silly long make column make silly long column long make very </p>
    </div>

    <div id="extra">


    3) More stuff here. very text make long column make filler fill make column column silly filler text silly column fill silly fill column text filler make text silly filler make filler very silly make text very very text make long filler very make column make silly column fill silly column long make silly filler column filler silly long long column fill silly column very </p>
    </div>


    <div id="navigation">


    2) Navigation here. long long fill filler very fill column column silly filler very filler fill fill filler text fill very silly fill text filler silly silly filler fill very make fill column text column very very column fill fill very silly column silly silly fill fill long filler </p>
    </div>

    <div id="footer">

    Here it goes the footer</p></div>

    </div>
    </body>

  4. #4
    Utente di HTML.it
    Registrato dal
    Sep 2001
    Messaggi
    21,188
    Inserendo del codice usa sempre gli appositi tasti, altrimenti e` difificle capire.

    Comunque non ci sono impedimenti perche` due blocchi non ci stiano. Non nei browser W3C-compliant e se usi la DTD XHTML Strict.

    Dovresti comunque fare le seguenti prove:
    1. stringere un pelo i blocchi interni (oppure aumentare il width del container), in modo da avere "un minimo di aria"
    2. azzerare esplicitamente margini, border e padding di tutti i blocchi interni
    Nuova politica di maggiore severita` sui titoli delle discussioni: (ri)leggete il regolamento
    No domande tecniche in messaggi privati

  5. #5
    Io penso che la soluzione piu' semplice, e probabilmente anche la piu' compatibile, e' inserire semplicemente il div "extra" all'interno del div "content"; nella parte bassa ovviamente.
    In questo modo, extra ereditera' la larghezza di content e la sua posizione e sara' sempre posto nel fondo di quest'ultimo!
    WordPress AndMore - Apprendiamo WordPress Facilmente!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.