Hirdetés

Új hozzászólás Aktív témák

  • who_a_way

    csendes tag

    Sziasztok!

    Hogyan tudnám a következő kódot úgy átalakítani, hogy mindig a közepén legyen a weboldalon a " main doboz"? Ha lecsökkentem az ablakot akkor a megváltozott mérethez igazodjon, ha viszont túl kicsire veszem, akkor ne "nyomja össze" a "dobozt", hanem azért legyen egy fix mérete?
    Center-re van állítva a main nevű div egyébként csak nem itt a css-ben hanem "kint". A kikommentezett részekkel is próbálkoztam kevés sikerrel. Jelenleg a main doboz a weboldal bal oldalára beáll..

    body {
    background-color: rgb(230,230,230);
    background-repeat: repeat-x;
    background-position: 100%;
    background-attachment: fixed;
    color: #0000003;
    }

    div#main{
    background-color: rgb(215,215,215);
    border:0.1em solid rgb(0,0,0);
    -webkit-border-radius:0.5em;
    -moz-border-radius:0.5em;
    border-radius:0.5em;
    position: fixed;
    /* left: 30%; */
    /* width: 760px; */
    }

    div#header{
    margin-top: 10px;
    margin-right: 10px;
    margin-left: 10px;
    margin-bottom: 1px;
    }

    div#cim{
    background-color: orange;
    border:0.1em solid rgb(0,0,0);
    -webkit-border-radius:0.5em;
    -moz-border-radius:0.5em;
    border-radius:0.5em;
    margin-top: 1px;
    margin-left: 9px;
    margin-right: 9px;
    margin-bottom: 10px;
    }

    LG Optimus 2X, Dell Inspiron 7520

Új hozzászólás Aktív témák