Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Problemy z wyświetlaniem,wyśrodkowanie
#1
Witam. Moim problemem jest różna interpretacja wyświetlania poszczególnych obrazków w przeglądarkach...
Główny obrazek tła mam na center, a resztę mam dopasowaną "ręcznie". Czy istnieje prostszy sposób, dzięki któremu każda przeglądarka będzie tak samo interpretowała położenie obrazków.

Kod:
body {
    
    background-color: #7d964b;
    background-image: url(images/tlo.png);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    width: 734px;
    height: 742px;
    margin: 0;
    padding: 0;
    border: 0px;
    
    }



#logo{
    background: url(images/logo.png) no-repeat;
    background-attachment: absolute;
    background-position: center;
    position: absolute;
    width: 734px;
    height: 207px;
    left: 263px;
    bottom: 575px;
    margin: 0;
    padding: 0;
    border: 0px;
    z-index: 2;
}



#home {
    background-image: url(images/home.png);
    background-repeat: no-repeat;
    width: 75px;
    height: 35px;
    position: fixed;
    left: 270px;
    top: 74px;
    margin: 0;
    padding: 0;
    border: 0px;
    z-index: 4;
}

#home:hover {
    background-image: url(images/homeh.png);
    background-repeat: no-repeat;
    width: 75px;
    height: 35px;
    position: fixed;
    left: 270px;
    top: 74px;
    margin: 0;
    padding: 0;
    border: 0px;
    z-index: 4;
}

#onas {
    background-image: url(images/onas.png);
    background-repeat: no-repeat;
    width: 77px;
    height: 32px;
    position: fixed;
    left: 270px;
    top: 240px;
    margin: 0;
    padding: 0;
    border: 0px;
    z-index: 4;
}

#onas:hover {
    background-image: url(images/onash.png);
    background-repeat: no-repeat;
    width: 77px;
    height: 32px;
    position: fixed;
    left: 270px;
    top: 240px;
    margin: 0;
    padding: 0;
    border: 0px;
    z-index: 4;
}

#oferta {
    background-image: url(images/oferta.png);
    background-repeat: no-repeat;
    width: 106px;
    height: 32px;
    position: fixed;
    left: 445px;
    top: 240px;
    margin: 0;
    padding: 0;
    border: 0px;
    z-index: 4;
}

#oferta:hover {
    background-image: url(images/ofertah.png);
    background-repeat: no-repeat;
    width: 106px;
    height: 32px;
    position: fixed;
    left: 445px;
    top: 240px;
    margin: 0;
    padding: 0;
    border: 0px;
    z-index: 34;
}

#galeria {
    background-image: url(images/galeria.png);
    background-repeat: no-repeat;
    width: 122px;
    height: 28px;
    position: fixed;
    left: 640px;
    top: 240px;
    margin: 0;
    padding: 0;
    border: 0px;
    z-index: 4;
}

#galeria:hover {
    background-image: url(images/galeriah.png);
    background-repeat: no-repeat;
    width: 122px;
    height: 28px;
    position: fixed;
    left: 640px;
    top: 242px;
    margin: 0;
    padding: 0;
    border: 0px;
    z-index: 4;
}

#kontakt {
    background-image: url(images/kontakt.png);
    background-repeat: no-repeat;
    width: 133px;
    height: 35px;
    position: fixed;
    left: 855px;
    top: 236px;
    margin: 0;
    padding: 0;
    border: 0px;
    z-index: 4;
}

#kontakt:hover {
    background-image: url(images/kontakth.png);
    background-repeat: no-repeat;
    width: 133px;
    height: 35px;
    position: fixed;
    left: 855px;
    top: 236px;
    margin: 0;
    padding: 0;
    border: 0px;
    z-index: 4;
}

I HTML:
Kod:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//PL">
<html lang="pl">
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-2"/>
   <title>Hellerówka - piękne ogrody w Bydgoszczy zapraszaj±</title>
    <meta name="Description" content="Piękne ogrody w Bydgoszczy, które zachwycą cie swoim pięknem.Projektujemy i doradzamy." />
    <meta name="Keywords" content="ogrody projektowanie,ogrody Bydgoszcz,projektowanie ogrodów,projektowanie ogrodu,Bożena Heller,Krzysztof Heller,ogrodnictwo,piękne ogrody,byliny,zioła,krzewy" />
    <meta name="Author" content="Emilia Heller"/>
    <link rel="shortcut icon" href="http://www.hellerowka.pl/images/favicon.ico" />
    <link rel="stylesheet" href="style.css" type="text/css" />




</head>
<body>


    <div id="logo">
    </div>


    <div id="home">
    </div>

    <div id="onas">
    </div>

    <div id="oferta">
    </div>

    <div id="galeria">
    </div>

    <div id="kontakt">
    </div>


</body>
</html>
Odpowiedz


Wiadomości w tym wątku
Problemy z wyświetlaniem,wyśrodkowanie - przez Emkacf - 30-03-2009, 00:42

Podobne wątki…
Wątek: Autor Odpowiedzi: Wyświetleń: Ostatni post
Toungue Pomagamy rozwiązywać problemy. Kamis086 0 1,434 30-12-2018, 23:28
Ostatni post: Kamis086
  Problemy z rotatorem banerów marian65 1 1,870 24-10-2018, 20:05
Ostatni post: Marcin
  [html][css]wyśrodkowanie elementu i rozciągniecie tła (bloku) baz 1 2,484 07-12-2012, 03:11
Ostatni post: andrzejhi
  Wyśrodkowanie poziome i pionowe camilost 4 3,171 07-10-2012, 05:55
Ostatni post: camilost
  mój pierwszy blog - problemy gumis375 1 2,408 06-09-2012, 04:42
Ostatni post: Kartofelek

Skocz do:


Użytkownicy przeglądający ten wątek: 1 gości
Sponsorzy i przyjaciele
SeoHost.pl