Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [HTML][CSS] problem z wieloma divami w divie, w divie: wiele wierszy z dwoma divami obok siebie
hiszpanespaniol
post 14.08.2008, 10:15:28
Post #1





Grupa: Zarejestrowani
Postów: 213
Pomógł: 39
Dołączył: 7.04.2008
Skąd: 3city

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


witam.
mam taki problem.
  1. <div id="box">
  2. <div class="lewy"></div><div class="prawy"></div>
  3. <div class="lewy"></div><div class="prawy"></div>
  4. <div class="lewy"></div><div class="prawy"></div>
  5. <div class="lewy"></div><div class="prawy"></div>
  6. <div class="clear"><!-- --></div>
  7. </div>
  8.  
  9. css:
  10. #box {
  11. overflow: hidden;
  12. clear: both;
  13. }
  14. .lewy {float: left; width: 20%; height: auto; overflow: auto; clear: left;}
  15. .prawy {float: left; width: 78%; height: auto; overflow: auto; clear: right;}
  16. .clear {clear: both}


czy ktoś ma na to radę?
rozlatuje się w większości przeglądarek.
divy zamiast parami być pod sobą, lecą w prawo

Ten post edytował hiszpanespaniol 14.08.2008, 10:32:04


--------------------
Go to the top of the page
+Quote Post
webdice
post 14.08.2008, 10:30:29
Post #2


Developer


Grupa: Moderatorzy
Postów: 3 045
Pomógł: 290
Dołączył: 20.01.2007




Proszę o poprawnie tytułu, same tagi nie są tytułem.
Go to the top of the page
+Quote Post
Shili
post 14.08.2008, 10:35:42
Post #3





Grupa: Zarejestrowani
Postów: 1 085
Pomógł: 231
Dołączył: 12.05.2008

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


Kod
#box {
overflow: hidden;
clear: both;
}
.lewy {float: left; width: 20%; height: auto; overflow: auto; clear: left;}
.prawy {float: left; width: 78%; height: auto; overflow: auto;}
.clear {clear: both;}

Powinno pomóc.
Go to the top of the page
+Quote Post
hiszpanespaniol
post 14.08.2008, 10:44:07
Post #4





Grupa: Zarejestrowani
Postów: 213
Pomógł: 39
Dołączył: 7.04.2008
Skąd: 3city

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


dziękuję, pomogło
a już miałem wszystkie linijki dać w następnego div'a smile.gif
(pomógł)

pozdrawiam.


--------------------
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 Wersja Lo-Fi Aktualny czas: 15.06.2025 - 09:40