Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [XHTML] Problem z divem
Oryos
post
Post #1





Grupa: Zarejestrowani
Postów: 1
Pomógł: 0
Dołączył: 22.09.2010

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


Witam. Mam bardzo głupi i banalny problem, ale męczę się z tym już dłuższą chwilę i nie potrafię nic wykombinować. Wygląda to tak:

(IMG:http://fotoo.pl/zdjecia/files/2010-09/0f067b70.png)

Tutaj kod:

  1. <div id="post">
  2. <div id="posty1">
  3. <div class="posty_tresc"><a href="#">Lorem ipsum dolor sit amet</a></div>
  4. <div class="posty_tresca">as</div>
  5. <div class="posty_trescd">22.09.2010</div>
  6. </div>
  7. <div id="posty2">
  8. <div class="posty_tresc">Lorem ipsum dolor sit amet</div>
  9. <div class="posty_tresca">as</div>
  10. <div class="posty_trescd">22.09.2010</div>
  11. </div>
  12. <div id="posty3">
  13. <div class="posty_tresc">Lorem ipsum dolor sit amet</div>
  14. <div class="posty_tresca">as</div>
  15. <div class="posty_trescd">22.09.2010</div>
  16. </div>
  17. </div>


  1. #post {
  2. height:163px;
  3. width:453px;
  4. float:left;
  5. }
  6. .posty_tresc {
  7. padding-top:7px;
  8. padding-left:20px;
  9. font-family:Tahoma;
  10. font-size:12px;
  11. color:#ffffff;
  12. float:left;
  13. }
  14. .posty_tresca {
  15. padding-top:7px;
  16. padding-left:240px;
  17. font-family:Tahoma;
  18. font-size:12px;
  19. color:#ffffff;
  20. }
  21. .posty_trescd {
  22. padding-top:7px;
  23. padding-left:350px;
  24. font-family:Tahoma;
  25. font-size:12px;
  26. color:#ffffff;
  27. }
  28. #posty1 {
  29. background:url(images/a_18.jpg) no-repeat;
  30. width:453px;
  31. height:31px;
  32. }
  33. #posty2 {
  34. background:url(images/a_20.jpg) no-repeat;
  35. width:453px;
  36. height:31px;
  37. }
  38. #posty3 {
  39. background:url(images/a_22.jpg) no-repeat;
  40. width:453px;
  41. height:51px;
  42.  
  43. }


I teraz jak zrobić żeby ta data była na równi z nazwą newsa i autorem ?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
thurinon
post
Post #2





Grupa: Zarejestrowani
Postów: 55
Pomógł: 2
Dołączył: 8.10.2009

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


A jak byś pobawił się z float: ;
a jak nie to zawsze jest jeszcze: margin-top: -20px; (tak na oko :-]
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 - 10:27