Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [html][css] Zła interpretacja margin-top
poxrimex
post
Post #1





Grupa: Zarejestrowani
Postów: 368
Pomógł: 2
Dołączył: 23.09.2007

Ostrzeżenie: (60%)
XXX--


mam taki problem z tym skryptem:

  1. <div class="pasek"><div class="pasekin">Ile lat:<b>&nbsp;&nbsp;
  2. 286
  3. </b></div></div>


a to css:

  1. div.pasek
  2. {
  3. background-image: url(images/pasek.gif);
  4. background-repeat: no-repeat;
  5. text-align: left;
  6. height: 16px;
  7. }
  8.  
  9. div.pasekin
  10. {
  11. font-family: Arial, Helvetica, Verdana, sans-serif;
  12. font-size: 12px;
  13. color: #ffffff;
  14. margin-left: 10px;
  15. display: block;
  16. margin-top: 1px;
  17. }


i margin top działa jako margin pomiędzy elementami pasek, a ja chciałbym ażeby margin-top działało jako odległość pomiędzy divem pasekin, a divem pasek

Ten post edytował poxrimex 8.03.2008, 10:59:10


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



Go to the top of the page
+Quote Post

Posty w temacie


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: 20.08.2025 - 23:19