Visualizzazione dei risultati da 1 a 5 su 5

Hybrid View

  1. #1
    Utente di HTML.it
    Registrato dal
    Oct 2008
    Messaggi
    46

    layout elastico: IE non prende left e right insieme

    Ciao a tutti, ho un problemone:
    devo fare un layout elastico in cui un div é posizionato al centro della pagina.
    l'ho fatto nel seguente modo:

    html:

    <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>test elementi template</title>
    <link href="./prova.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="test_assoluto">aeiou</div>
    </body>
    </html>

    css:

    html{
    height: 100%;
    width: 100%;
    margin: 0px;
    padding:0px;
    border: 0px;
    }
    body{
    background-image: url("./legno-tavolo_3.jpg");
    background-repeat: repeat;
    z-index: 0;
    height: 100%;
    width: 100%;
    margin: 0px;
    padding:0px;
    border: 0px;
    text-align: left;
    position: relative;
    }
    #test_assoluto{
    position: absolute;
    left: 16em;
    right: 16em;
    top: 3em;
    bottom: 4em;
    background-color: blue;
    }

    Vorrei sapere perché ho le seguenti differenti rappresentazioni:
    in firefo, e gli altri é ok, in IE l'angolo in alto a sx é ok, mentre vengono ignorati i codici bottom e right, adattando il div per il contenuto(aeiou).
    Come faccio per far valere bene tutto anche in IE?
    Immagini allegate Immagini allegate

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.