Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [HTML][inne]Strona zjeżdża na lewo w explorer
Forum PHP.pl > Forum > Przedszkole
VeParadox
Witam.
Mam taką amatorską stronę, wszystko działa oki, ale w przeglądarce explorer zjeżdża wszystko na lewo... gdzie jest błąd? jak to naprawić? Bo w innych przeglądarkach jest oki..
Adres podeśle na pw, tylko poradźcie coś.. :/
toffiak
Będę zgadywał: margin: 0 auto; text-align: center;
VeParadox
no niestety, chyba że konkretnie powiesz w jakiej sekcji, bo w css mam wszystko indywidualnie ustalone:

Kod
* {
    margin: 0;
    padding: 0;
}

body {
    padding: 40px 0;
    font: 13px "Trebuchet MS", Arial, Helvetica, sans-serif;
    color: #174072;
    background: #FFFFFF;
}

h1 {
    width: 300px;
    padding: 20px 0 0 0;
    font: normal 48px Georgia, Times, serif;
    text-align: center;
    color: #3960A8;
}

h1 a {
    color: #3960A8;
    text-decoration: none;
}

h1 a:hover {
    color: #FFFFFF;
    text-decoration: none;
}

h2 {
    font-weight: normal;
    color: #2A476B;
}

p {
    
    line-height: 1.8em;
    text-align: justify;
}

p#subtitle {
    float: right;
    width: 610px;
    padding: 0 0 0 50px;
    font-size: 16px;
    line-height: 60px;
    color: #2A476B;
}

a {  
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* page */

#page {
    width: 960px;
    margin: -10 auto;
}

/* menu */

#menu {
    height: 46px;
    margin-bottom: 40px;
    padding-left: 20px;
}

#menu ul {
    list-style: none;
}

#menu ul li {
    display: block;
    float: left;
    margin-right: 5px;
    font-size: 16px;
    line-height: 40px;
    text-align: center;
}

#menu ul li a {
    display: block;
    float: left;
    padding: 0 44px 0 0;
    text-decoration: none;
    color: #292E29;
}

#menu ul li a  span {
    display: block;
    float: left;
    height: 46px;
    padding: 0 0 0 44px;
    cursor: pointer;
}

#menu ul li a:hover {
    
}

#menu ul li.active a {
    color: #3960A8;
    background: url('images/menu.gif') no-repeat right;
}

#menu ul li.active a span {
    background: url('images/menu2.gif') no-repeat left;
}

/* logo */

#logobg {
    height: 215px;
    padding-top: 25px;
    background: url('images/header.jpg') no-repeat;
}

#logo {
    display: block;
    width: 160px;
    height: 106px;
    margin: 0 0 0 70px;
    border: none;
}

/* bar */

#bar {
    position: relative;
    height: 62px;
    margin-bottom: 40px;
    background:  url('images/bar.jpg') no-repeat;
}

/* search */

#search {
    position: absolute;
    top: 15px;
    left: 30px;
    width: 240px;
    height: 30px;
    background: #3960A8 url('images/search.gif') no-repeat;
    border: none;
}

#search input.text {
    float: left;
    display: block;
    width: 180px;
    height: 22px;
    line-height: 22px;
    padding: 4px 0 4px 15px;
    font-size: 16px;
    color: #2A476B;
    background: none;
    border: none;
}

#search input.submit {
    float: right;
    display: block;
    width: 40px;
    height: 30px;
    background: #3960A8 url('images/submit.gif') no-repeat top;
    border: none;
    cursor: pointer;
}

/* sidebar */

#sidebar {
    float: left;
    width: 300px;
    margin-bottom: 30px;
    background:  url('images/sidebar.gif') repeat-y;
}

#sidebar2 {
    background: url('images/sidebar.jpg')  no-repeat top;
}

#sidebar3 {
    padding: 30px;
    background: url('images/sidebar2.gif') no-repeat bottom;
}

#sidebar h2 {
    padding-left: 20px;
    font-size: 1.5em;
}

#sidebar .box {
    padding: 2em 20px 2.5em 20px;
}

#sidebar p {
    text-align: left;
    line-height: 2em;
}

#sidebar ul {
    list-style: none;
    padding: 2.2em 0 3.5em 0;
}

#sidebar ul li {
    padding: .2em 10px .2em 20px;
    line-height: 2.5em;
    border-bottom: 1px solid #3960A8;
}

/* content */

#content {
    float: right;
    width: 580px;
    padding: 0 30px 10px 0;
}

#content .post {
    clear: both;
    padding-bottom: 2em;
}

#content .entry {
    padding-top: .75em;
}

#content h2 {
    font-size: 2em;
}

#content h2 a {
    color: #3960A8;
    text-decoration: none;
}

p.postmeta {
    color: #888888;
}

p.readmore {
    float: right;
    width: 110px;
    height: 7em;
    padding: 0;
    line-height: 34px;
    text-align: center;
    background: url('images/more.gif') no-repeat;
}

p.readmore a {
    text-decoration: none;
}

p.readmore a:hover {
    color: #3960A8;
}

/* footer */

#footer {
    clear: both;
    height: 1%;
    padding: 0 30px;
}

#footer p {
    padding-left: 320px;
    color: #888888;
}
fate
Ktora wersja IE ?

Na poczatek sprobuj

CODE
* {
margin: 0 auto;
padding: 0;
}


I zobacz czy w IE layout jest OK - zakladam ze wysrodkuje Ci mnostwo innych elementow niepotrzebnie
i po co na PW wstaw tu link

NAJPIERW jednak POPRAW TO:

/* page */

#page {
width: 960px;
margin: -10 auto;
}

na

/* page */

#page {
width: 960px;
margin: -10px auto;
}

Na tym IE moze się rozkładać
VeParadox
Chodziło o
Kod
px
biggrin.gif
Wielkie dzięki, klik pomógł wink.gif
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.