Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Dwa divy i tło
Neeeo
post
Post #1





Grupa: Zarejestrowani
Postów: 14
Pomógł: 0
Dołączył: 8.04.2007

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


Mam stronę na divach:

  1. <div id="body_tresc">
  2. <div id="body_left">
  3. <div class="body_left_t">tresc strony</div>
  4. </div>
  5. <div id="body_right">
  6. <div class="body_right_t">menu</div>
  7. </div>
  8. </div>


Plik css:
  1. div#body_tresc {
  2. background-image: url('media/tlo.gif');
  3. }
  4.  
  5. div#body_left {
  6. width: 528px;
  7. float: left;
  8. overflow: hidden;
  9. }
  10.  
  11. div#body_right {
  12. width: 233px;
  13. float: left;
  14. overflow: hidden;
  15. }
  16.  
  17. div.body_left_t {
  18. margin: 10px 0px 10px 20px;
  19. }
  20.  
  21. div.body_right_t {
  22. margin: 10px 20px 10px 0px;
  23. }


Problem w tym że divy #body_right i #body_left zasłaniają diva #body_tresc i nie widać tła, które przecież jest ustalone. Gdy usunę te dwa divy tło wczytuje się normalnie.
Go to the top of the page
+Quote Post
nevt
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 1 595
Pomógł: 282
Dołączył: 24.09.2007
Skąd: Reda, Pomorskie.

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


Kod
#body_left, #body_right { background: transparent; }


--------------------

-
Oh no, my young coder. You will find that it is you who are mistaken, about a great many things... -
Go to the top of the page
+Quote Post
MMX3
post
Post #3





Grupa: Zarejestrowani
Postów: 155
Pomógł: 9
Dołączył: 26.01.2004
Skąd: Poznań

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


albo: none


--------------------
Go to the top of the page
+Quote Post
Neeeo
post
Post #4





Grupa: Zarejestrowani
Postów: 14
Pomógł: 0
Dołączył: 8.04.2007

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


Niestety ani jedno ani drugie rozwiązanie nie działa :/
Go to the top of the page
+Quote Post
nevt
post
Post #5





Grupa: Przyjaciele php.pl
Postów: 1 595
Pomógł: 282
Dołączył: 24.09.2007
Skąd: Reda, Pomorskie.

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


wiesz co, weź wyrzuć te moje wcześniejsze zmiany i po prostu na początku css wpisz:
Kod
div { background: none };

i będzie ok.


--------------------

-
Oh no, my young coder. You will find that it is you who are mistaken, about a great many things... -
Go to the top of the page
+Quote Post
Toadstyle
post
Post #6





Grupa: Zarejestrowani
Postów: 54
Pomógł: 4
Dołączył: 26.01.2008
Skąd: Kraków

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


#body_tresc {background: url(media/tlo.gif) no-repeat;}
#body_right {background:none;}
#body_left {background:none;}

to powinno dzialac

edit-zaspanie

Ten post edytował Toadstyle 4.02.2008, 13:58:09
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 22.08.2025 - 05:48