Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML][CSS] Divy obok siebie
--Marko--
post
Post #1





Goście







Cześć,
Mam taki kod http://cssdeck.com/labs/cexmme3h potrzebuję divy 2, 4, 6 przyciągnąć do prawej krawędzi...kombinuje i nic. Gdzie tkwi haczyk?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Turson
post
Post #2





Grupa: Zarejestrowani
Postów: 4 291
Pomógł: 829
Dołączył: 14.02.2009
Skąd: łódź

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


  1. #body {width: 650px;margin-left:auto;margin-right:auto;}
  2.  
  3. #content {
  4. float: left;
  5. width: 650px;
  6. background-color: blue;
  7. position: relative;
  8. }
  9.  
  10. #content .boxNews {
  11. width: 320px;
  12. height: 260px;
  13. background-color: #2EFE2E;
  14. margin-bottom:10px;
  15. float: left;
  16. }
  17.  
  18. #content .boxNews:nth-child(odd){
  19. margin-right:10px;
  20. }


albo też po prostu

  1. #content .boxNews {
  2. width: 320px;
  3. height: 260px;
  4. background-color: #2EFE2E;
  5. margin-bottom:10px;
  6. }
  7.  
  8. #content .boxNews:nth-child(odd){
  9. margin-right:10px;
  10. float:left;
  11. }
  12. #content .boxNews:nth-child(even){
  13. float:right;
  14. }


Ten post edytował Turson 10.02.2014, 22:06:01
Go to the top of the page
+Quote Post

Posty w temacie


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: 5.10.2025 - 16:28