Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [html][css] Zła interpretacja margin-top
poxrimex
post 8.03.2008, 10:53:57
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
 
Start new topic
Odpowiedzi (1 - 2)
grzesiek_g
post 8.03.2008, 12:38:22
Post #2





Grupa: Zarejestrowani
Postów: 249
Pomógł: 30
Dołączył: 18.07.2007

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


Usuń ten margin-top z pasekin i dodaj do pasek padding-top:1px


--------------------
Warsztat: Ubuntu 12.10, PHPStorm
http://vertoo.pl
Go to the top of the page
+Quote Post
poxrimex
post 8.03.2008, 13:16:26
Post #3





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

Ostrzeżenie: (60%)
XXX--


niestety to przynosi ten sam efekt ;/

spoko już działa


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



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: 31.07.2025 - 06:20