Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [css]Odstęp pomiędzy obramowaniem a następnym divem
poxrimex
post
Post #1





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

Ostrzeżenie: (60%)
XXX--


Div stopki:

  1. #stopka
  2. {
  3. width:900px;
  4. margin-left: auto;
  5. margin-right: auto;
  6. clear: both;
  7. border-top-width: 1px;
  8. border-top-color: #DDDDDD;
  9. border-top-style: solid;
  10. }


Mam problem, gdyż po wyświetleniu strony odrazu górne obramowanie tego elementu jest przy innym divie jak zrobić odstęp?


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



Go to the top of the page
+Quote Post
tomeksobczak
post
Post #2





Grupa: Zarejestrowani
Postów: 139
Pomógł: 10
Dołączył: 6.07.2007
Skąd: opole

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


margin-top ?


--------------------
Go to the top of the page
+Quote Post
--chlebik--
post
Post #3





Goście







Skoro masz 'margin-left: auto' i tak samo jest z 'margin-right: auto' to moze skumuluj to (plus to, ze potrzebujesz odstepu na gorze) i zapisz:

Kod
margin: 30px auto;
Go to the top of the page
+Quote Post
poxrimex
post
Post #4





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

Ostrzeżenie: (60%)
XXX--


Margin top działa mi pod operę i IE ale pod mozille już nie. Może macie jeszcze jakiś pomysł?


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



Go to the top of the page
+Quote Post
Daimos
post
Post #5





Grupa: Zarejestrowani
Postów: 1 319
Pomógł: 118
Dołączył: 26.11.2003
Skąd: Lublin

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


pokaz kod jaki masz teraz


--------------------
scriptun.com. Startup z poradnikami do gier ttp.zone i ttpzone.pl
Go to the top of the page
+Quote Post
poxrimex
post
Post #6





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

Ostrzeżenie: (60%)
XXX--


Kod:

  1. #menu
  2. {
  3. float: left;
  4. width: 300px;
  5. text-align: center;
  6. background-color: white;
  7. margin-left: auto;
  8. margin-right: auto;
  9. clear: both;
  10. border-width: 2px;
  11. border-color: #DDDDDD;
  12. border-style: solid;
  13. text-align: center;
  14. }
  15.  
  16.  
  17. #stopka
  18. {
  19. width:900px;
  20. margin-left: auto;
  21. margin-right: auto;
  22. clear: both;
  23. border-top-width: 1px;
  24. border-top-color: #DDDDDD;
  25. border-top-style: solid;
  26. }
  27.  
  28. <div id="stopka">
  29. Tekst &copy; 2008
  30. </div>


Ten post edytował poxrimex 18.01.2008, 22:28:36


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



Go to the top of the page
+Quote Post
Daimos
post
Post #7





Grupa: Zarejestrowani
Postów: 1 319
Pomógł: 118
Dołączył: 26.11.2003
Skąd: Lublin

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


no i gdzie ten margin-top, ktory to niby nie dziala?
  1. #stopka
  2. {
  3. width:900px;
  4. margin-top: 500px;
  5. margin-left: auto;
  6. margin-right: auto;
  7. clear: both;
  8. border-top-width: 1px;
  9. border-top-color: #DDDDDD;
  10. border-top-style: solid;
  11. }
to wogole nie dziala? powinno winksmiley.jpg


--------------------
scriptun.com. Startup z poradnikami do gier ttp.zone i ttpzone.pl
Go to the top of the page
+Quote Post
poxrimex
post
Post #8





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

Ostrzeżenie: (60%)
XXX--


hehe teraz w Mozilli działa a w Operze nie.

Pozatym ja bym chciał żeby to było zaraz pod divem menu. Na operze wystarczyło dać znacznik <br /> i działało też na IE, a na mozilli nie działa ;/


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



Go to the top of the page
+Quote Post
Daimos
post
Post #9





Grupa: Zarejestrowani
Postów: 1 319
Pomógł: 118
Dołączył: 26.11.2003
Skąd: Lublin

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


  1. <br style="clear:both">


--------------------
scriptun.com. Startup z poradnikami do gier ttp.zone i ttpzone.pl
Go to the top of the page
+Quote Post
poxrimex
post
Post #10





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

Ostrzeżenie: (60%)
XXX--


Ty to masz głowę ... Działa ;p


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



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 Aktualny czas: 19.08.2025 - 17:14