Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS]Position: fixed i tlo - obrazek
Tom:-)
post
Post #1





Grupa: Zarejestrowani
Postów: 284
Pomógł: 0
Dołączył: 25.03.2007
Skąd: Globalna wioska

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


Coś mam dodać/zmienić aby się ukazywało tło:
  1. #tom_box
  2. {
  3. position:fixed;
  4. right:0px;
  5. top:300px;
  6. background-image:http://tomcio.eu/templates/tomcio_eu/images/Bottom_texture.jpg;
  7. background-attachment:fixed;
  8. border:5px solid;
  9. border-color:#404040;
  10. width:150px;
  11. padding:3px;
  12. z-index:1;
  13. }


Ten post edytował Tom:-) 13.09.2011, 18:16:34
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 4)
lobopol
post
Post #2





Grupa: Zarejestrowani
Postów: 1 729
Pomógł: 346
Dołączył: 4.04.2009

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


  1. background-image:url('http://tomcio.eu/templates/tomcio_eu/images/Bottom_texture.jpg');

albo lepiej
  1. background:url('http://tomcio.eu/templates/tomcio_eu/images/Bottom_texture.jpg');
Go to the top of the page
+Quote Post
Tom:-)
post
Post #3





Grupa: Zarejestrowani
Postów: 284
Pomógł: 0
Dołączył: 25.03.2007
Skąd: Globalna wioska

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


Ale ze mnie ciotka :-) A jak zrobić aby się tło nie chowało pod inne elementy. Border się nie kryje a tło tak

Ten post edytował Tom:-) 13.09.2011, 18:27:30
Go to the top of the page
+Quote Post
lobopol
post
Post #4





Grupa: Zarejestrowani
Postów: 1 729
Pomógł: 346
Dołączył: 4.04.2009

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


Tło samo z siebie nie powinno się chować, co najwyżej pod te elementy które są w nim, a przy position:fixed te które są wyżej w z-index bądź w nim. musiałbym zobaczyć jak to wygląda.
Go to the top of the page
+Quote Post
Tom:-)
post
Post #5





Grupa: Zarejestrowani
Postów: 284
Pomógł: 0
Dołączył: 25.03.2007
Skąd: Globalna wioska

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


Wiem dlatego zmieniłem na formułę:
Kod
background-image:url(http://tomcio.eu/templates/tomcio_eu/images/Bottom_texture.jpg);
i teraz działa poprawnie

Ten post edytował Tom:-) 13.09.2011, 18:36:34
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: 23.08.2025 - 00:08