Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS]divy i ładowanie do nich zawartości php
Zielonkawy18
post
Post #1





Grupa: Zarejestrowani
Postów: 152
Pomógł: 4
Dołączył: 4.10.2012

Ostrzeżenie: (10%)
X----


Witam

Oto mój styl layota:

  1. php, body
  2. {
  3. background-color: #FFFFFF;
  4. margin: 0;
  5. padding: 0;
  6. }
  7.  
  8. .zalogowany { background-color: #4F86F7; height: 50px; width: 100%; position: absolute;}
  9.  
  10. #tresc { background-color:#FF00FF; height:auto; width: auto; position: absolute; margin-top:50px; margin-left:275px ;}
  11.  
  12. #pasek_pionowy { background-color:#4F86F7; height:600; width: 2; position: absolute; margin-top:50px; margin-left:265px ;}
  13.  
  14. #Logo{background: transparent url(Logo.png);position: absolute; margin-left:51px ; margin-top:50px; height:128px; width:128px; background-position: center;}
  15.  
  16. .Ustawienia{background: transparent url(UstawieniaMini.png);position: absolute; margin-left:51px ; margin-top:195px; height:44; width:150px; background-position: center;}
  17.  
  18.  
  19. #MenuUstawienia { background-color:#FF00FF; height: 70; width:270px; position: absolute; margin-top:225px;}
  20.  
  21. #MenuInne { background-color:#FF00FF; height: 100; width:270px; position: absolute; margin-top:600px;}


Menu w php:

  1. <html>
  2. <head>
  3. <?php
  4. if(!$add_site) exit;
  5. ?>
  6. <style type="text/css">
  7. p{
  8. margin: 0;
  9. padding: 0;
  10. }
  11. </style>
  12. <style type="text/css">
  13. p.menu {
  14. color: black;
  15. font-family: Verdana;
  16. font-style: normal;
  17. font-size: 12px;
  18. letter-spacing: normal;
  19. text-decoration: none;
  20. text-align: center;
  21. }
  22.  
  23. a {
  24. color: black;
  25. text-decoration: none;
  26. }
  27.  
  28. a:hover
  29. {
  30. color:red;
  31. }
  32. </style>
  33. </head>
  34. <p class="menu"><a href="index.php?show=1">Dodaj użytkownika</a></p>
  35. <p class="menu"><a href="index.php?show=2">Usuń użytkownika</a></p>
  36. <p class="menu"><a href="index.php?show=3">Twój profil</a></p>
  37. </html>


Ładuję to, do diva w index.php:

  1. <div id="MenuUstawienia">
  2. <?php include 'MenuUstawienia.php'; ?>
  3. </div>


I wychodzi taka lipa:

(IMG:http://www.picshot.pl/pthumbs/small/244991/div.jpg)

Ten margines górny mnie dobija (IMG:style_emoticons/default/sad.gif)
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: 7.10.2025 - 07:41