Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Centrowanie tła , problem pod IE
Avatarus
post
Post #1





Grupa: Zarejestrowani
Postów: 304
Pomógł: 0
Dołączył: 12.12.2006
Skąd: Pszów

Ostrzeżenie: (0%)
-----


Witam
Mam problem z wycentrowaniem tła pod IE.
Jak zawsze pod FF działa, niestety Ie znowu zawodzi.

Tło jest w bory i w CSS wygląda to tak:
Kod
body
{
background: url(adres_obrazka.jpg) no-repeat black top center;
font-family: "arial";
font-size: 12px;
font-weight: normal;
color: black;
margin: 0 auto;
padding 0px;


}

Elekt można zobaczyć na silkroadonline.com.pl/news.php

Ten post edytował Avatarus 16.03.2010, 19:26:27
Go to the top of the page
+Quote Post
krzysztof_kf
post
Post #2





Grupa: Zarejestrowani
Postów: 1 135
Pomógł: 158
Dołączył: 19.03.2009
Skąd: Toruń

Ostrzeżenie: (0%)
-----


dodaj do kodu bbcode
Go to the top of the page
+Quote Post
Avatarus
post
Post #3





Grupa: Zarejestrowani
Postów: 304
Pomógł: 0
Dołączył: 12.12.2006
Skąd: Pszów

Ostrzeżenie: (0%)
-----


no tak , przepraszam
Go to the top of the page
+Quote Post
krzysztof_kf
post
Post #4





Grupa: Zarejestrowani
Postów: 1 135
Pomógł: 158
Dołączył: 19.03.2009
Skąd: Toruń

Ostrzeżenie: (0%)
-----


Problem tkwi w css

Kod
.logo_pozycja_4
{


zamiast

Kod
position: relative;


wrzuć

Kod
float: right;

Go to the top of the page
+Quote Post
Avatarus
post
Post #5





Grupa: Zarejestrowani
Postów: 304
Pomógł: 0
Dołączył: 12.12.2006
Skąd: Pszów

Ostrzeżenie: (0%)
-----


to było to!
Wielkie dzięki za pomoc
Go to the top of the page
+Quote Post
krzysztof_kf
post
Post #6





Grupa: Zarejestrowani
Postów: 1 135
Pomógł: 158
Dołączył: 19.03.2009
Skąd: Toruń

Ostrzeżenie: (0%)
-----


RSS CI UCIEKA CHYBA DASZ RADĘ
Go to the top of the page
+Quote Post
ksenonlogin
post
Post #7





Grupa: Zarejestrowani
Postów: 123
Pomógł: 3
Dołączył: 29.10.2011

Ostrzeżenie: (0%)
-----


Wiem że już nieaktualne, ale problem jest bardzo znany i dla szukających obecnie odpowiedzi rozwiązanie niżej:
  1. body{
  2. position: relative;
  3. background-image: url(../images/d.jpg);
  4. background-repeat: no-repeat;
  5. background-repeat-x: no-repeat;
  6. background-repeat-y: no-repeat;
  7. background-position: center top;
  8. padding:0px;
  9. margin:0px
  10. }


Nie tylko dla body, ale również dla pozostałych elementów jaki div czy table
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 27.09.2025 - 15:28