Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Opływanie jednego diva przez drugiego
Joachim Peters
post
Post #1





Grupa: Zarejestrowani
Postów: 196
Pomógł: 2
Dołączył: 1.03.2006

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


Witam,

Jak zrobić coś takiego:

(IMG:http://images26.fotosik.pl/134/87ce0f89e73d10dd.jpg)

(IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif)

Pozdrawiam
Go to the top of the page
+Quote Post
wojtek.zielinski
post
Post #2





Grupa: Zarejestrowani
Postów: 40
Pomógł: 0
Dołączył: 19.12.2006
Skąd: Poznań

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


  1. <div>
  2. <div style="float: right;">div 2 div 2</div>
  3. div 1 div 1 div 1
  4. </div>
Go to the top of the page
+Quote Post
batman
post
Post #3





Grupa: Moderatorzy
Postów: 2 921
Pomógł: 269
Dołączył: 11.08.2005
Skąd: 127.0.0.1




Sposobów jest kilka. Podam Ci dwa, które przyszły mi do głowy.
  1. sposób 1:
  2. <div style="width: 600px;">
  3. <div style="float: left; width: 300px; background-color: #DBDBDB;">div 1</div>
  4. <div style="float: left; width: 300px; background-color: #707070;">div 2</div>
  5. <div style="float: left; width: 200px; background-color: #DDBBDD;">div 1</div>
  6. <div style="float: left; width: 200px; background-color: #FFFAAA;">div 1</div>
  7. <div style="float: left; width: 200px; background-color: #AAAFFF;">div 1</div>
  8. <div style="clear: left;"></div>
  9. </div>
  10.  
  11. sposób 2:
  12. <div style="float: left; width: 300px; background-color: #DBDBDB;">div 1</div>
  13. <div style="float: left; width: 300px; background-color: #707070;">div 2</div>
  14. <div style="clear: left;"></div>
  15. <div style="float: left; width: 200px; background-color: #DDBBDD;">div 1</div>
  16. <div style="float: left; width: 200px; background-color: #FFFAAA;">div 1</div>
  17. <div style="float: left; width: 200px; background-color: #AAAFFF;">div 1</div>
  18. <div style="clear: left;"></div>


Kolor tła dodałem w celach demonstracyjnych, więc nie sugeruj się nim (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg)
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: 22.08.2025 - 19:35