Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS][HTML] Inna interpretacja margin-top przez FF
mlodygda
post
Post #1





Grupa: Zarejestrowani
Postów: 33
Pomógł: 0
Dołączył: 22.08.2012

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


Witam, mam stronkę składającą się z 3 divów:

  1. #naglowek
  2. {
  3. text-align: center;
  4. position: absolute;
  5. background-color: #DBDBDB;
  6. width: 64%;
  7. height: auto;
  8. margin-top: 163px;
  9. margin-left: 18%;
  10. color: black;
  11. font-family: Acme;
  12. font-size: 14pt;
  13. border-style: outset;
  14. border-color: white;
  15. border-bottom: 0;
  16. }
  17.  
  18. #tresc
  19. {
  20. text-align: center;
  21. position: absolute;
  22. overflow: auto;
  23. background-color: #DBDBDB;
  24. width: 64%;
  25. height:434px;
  26. margin-top: 266px;
  27. margin-left: 18%;
  28. color: black;
  29. font-family: Acme;
  30. font-size: 14pt;
  31. border-style: outset;
  32. border-color: white;
  33. border-bottom: 0;
  34. border-top: 0;
  35. }
  36.  
  37. #stopka
  38. {
  39. text-align: center;
  40. position: absolute;
  41. background-color: #DBDBDB;
  42. width: 64%;
  43. height: auto;
  44. margin-top: 700px;
  45. margin-left: 18%;
  46. color: black;
  47. font-family: Acme;
  48. font-size: 14pt;
  49. border-style: outset;
  50. border-color: white;
  51. border-top: 0;
  52. }


Problem jest w nagłówku w tym miejscu:

margin-top: 163px;

Otóż tak ten margines interpretuje firefox:
http://s18.postimg.org/w1sg73rrt/firefox.jpg

A tak interpretuje go opera:
http://postimg.org/image/sbp9vrizr/

Jak można zauważyc w operze jest widoczna dolne obramowanie menu ( wskazane czerwoną strzałką ) natomiast w firefoxie to menu przesuwa sie nieco w dół i juz nie widać tego obramowania. Próbowałem to rozwiązywać za pomocą % czyli:

margin-top: xx%; -> ale wtedy na innych rozdzielczościach się stronka kaszani. Jakie jest wyjście z tej sytuacji?

Ten post edytował mlodygda 30.03.2013, 10:44:37
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: 23.08.2025 - 13:43