Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Divy - problem
Balas
post
Post #1





Grupa: Zarejestrowani
Postów: 347
Pomógł: 0
Dołączył: 27.08.2005
Skąd: Inowrocław

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


Mam kod :
  1. <div id="container">
  2.  
  3. <div id="logo">logo</div>
  4.  
  5.  
  6. <div id="stopka">cos 3 ;D </div>
  7. </div>


A tu CSS:
Kod
#container {
  border: 1px solid #d5d5d5;
  background-color: #01a568;
  padding: 1px;
  width: 500px;
  float: left;
  margin: auto;
}

#logo {
  background-color: #ffffff;
  text-align: left;
  margin-bottom: 1px;
  float: left;
  width: 496px;
}

#menu {
  background-color: #ffffff;
  border-top: 1px solid #d5d5d5;
  float: left;
  width: 200px;
}

#tresc {
  background-color: #ffffff;
  border-top: 1px solid #d5d5d5;
  border-left: 1px solid #d5d5d5;
  float: right;
  width: 295px;
}

#stopka {
  background-color: #ffffff;
  border-top: 1px solid #d5d5d5;
  float: right;
  width: 496px;
  margin-top: 1px;
}


Otoz problemy przyspaza mi ustawienie tego po srodku oraz nie wiem jak zrobic, aby DIV menu sie rozciagal na ta sama dlugosc co tresc. Ma ktos jakies pomysly (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) (IMG:http://forum.php.pl/style_emoticons/default/snitch.gif)

I jeszcze jedno... o ile ten kod dobrze dziala pod IE to w FF sie rozsypuja szerokosci, gdy zrobie pod FF to w IE sie rozjezdza :/

Ten post edytował OnE.Killer 5.02.2006, 14:48:05
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
ens0re
post
Post #2





Grupa: Zarejestrowani
Postów: 143
Pomógł: 0
Dołączył: 23.08.2005
Skąd: Warszawa

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


  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <style type="text/css">
  5.  
  6. * {
  7. margin: 0;
  8. padding: 0;
  9. border: 0;
  10. }
  11.  
  12. body {
  13. background-color: blue;
  14. margin: 0;
  15. padding: 0;
  16. text-align: center;
  17. }
  18.  
  19. #glowny {
  20. margin: 0 auto;
  21. padding: 0;
  22. width: 700px;
  23. text-align: center;
  24. }
  25.  
  26. #top {
  27. width: 700px;
  28. height: 100px;
  29. background-color: red;
  30. }
  31.  
  32. #lewe {
  33. width: 200px;
  34. background-color: green;
  35. float: left;
  36. }
  37.  
  38. #srodek {
  39. width: 500px;
  40. background-color: lightskyblue;
  41. float: left;
  42. }
  43.  
  44.  
  45. #stopka {
  46. width: 700px;
  47. height: 20px;
  48. background-color: pink;
  49. clear: both;
  50. }
  51.  
  52.  
  53. <div id="glowny">
  54. <div id="top">top</div>
  55. <div id="lewe">Lewe menu</div>
  56. <div id="srodek">Srodek</div>
  57. <div id="stopka">Stopka</div>
  58. </div>
  59. </body>
  60. </html>

Sprawdz taki kod i dostosuj go do swoich potrzeb..
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: 6.10.2025 - 18:12