Visualizzazione dei risultati da 1 a 2 su 2

Discussione: immagine in background

  1. #1

    immagine in background

    salve volevo chiedere il preche se ho questo:

    CSS:
    codice:
    html, body { width:100%; background:url(../images/document/background.jpg) center bottom no-repeat; }
    
    div#contentAll { position:relative; width:960px; min-height:500px; margin:0 auto; margin-bottom:400px; }
    HTML:

    <body>
    <div id="contentAll"></div>
    </body>


    l'immagine sotto me la da doppia cioè è come se allungasse il body.

  2. #2
    perchè hai inserito html, body , quindi lui ne inserisce una per html e una per body, prova a rimuovere HTML, quindi:

    codice:
    body { width:100%; background:url(../images/document/background.jpg) center bottom no-repeat; }
    div#contentAll { position:relative; width:960px; min-height:500px; margin:0 auto; margin-bottom:400px; }
    Social Network in costruzione.. Misto tra Twitter e Facebook.. Twitbook o facetter?

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.