Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML][CSS] Walidacja Kodu
poxrimex
post 17.01.2008, 21:31:15
Post #1





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

Ostrzeżenie: (60%)
XXX--


Wszystkie przeglądarki wyświetlają to jak trzeba, a w IE oczywiście logo jest po lewej stronie, a górne obramowanie jest żółte

Oto pliki:

  1. <link rel="Stylesheet" type="text/css" href="style.css" />
  2. </head>
  3. <div id="top">
  4. <img src="logo.gif" style="width: 340px; height=70px;" alt="logo">
  5. </div>
  6.  
  7. <div id="srodek">
  8.  
  9. </div>
  10.  
  11. <div id="down">
  12.  
  13. </div>
  14. </body </html>


a oto style.css:

  1. html
  2. {
  3. color: #494949;
  4. font-family: Tahoma, Helvetica, Verdana, sans-serif;
  5. text-align: center;
  6. font-size: 12px;
  7. margin-top: 0;
  8. margin-left: 0;
  9. margin-right: 0;
  10. margin-bottom: 0;
  11. }
  12.  
  13. #TOP
  14. {
  15. width: 900px;
  16. margin-left:auto;
  17. margin-right:auto;
  18. text-align: left;
  19. }
  20.  
  21. #SRODEK
  22. {
  23. width: 900px;
  24. margin-left:auto;
  25. margin-right:auto;
  26. border-top-style: outset;
  27. }
  28.  
  29. #DOWN
  30. {
  31. width: 900px;
  32. margin-left:auto;
  33. margin-right:auto;
  34. }


Ten post edytował poxrimex 17.01.2008, 21:31:40


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



Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 1)
szpakoo
post 17.01.2008, 22:38:17
Post #2





Grupa: Zarejestrowani
Postów: 122
Pomógł: 16
Dołączył: 19.04.2007

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


nie wiem czy o to chodzi ale sprawdź:

  1. <link rel="Stylesheet" type="text/css" href="style.css" />
  2. </head>
  3. <div id="top">
  4. <img src="logo.jpg" alt="logo">
  5. </div>
  6.  
  7. <div id="srodek">
  8.  
  9. </div>
  10.  
  11. <div id="down">
  12.  
  13. </div>
  14. </body </html>


  1. html,body
  2. {
  3. color: #494949;
  4. font-family: Tahoma, Helvetica, Verdana, sans-serif;
  5. font-size: 12px;
  6. width: 900px;
  7. margin: 0 auto;
  8. text-align: center;
  9. }
  10.  
  11. #TOP
  12. {
  13. width: 900px;
  14. margin: 0 auto;
  15. }
  16.  
  17. #TOP img {
  18. width: 340px;
  19. height:70px;
  20. }
  21.  
  22. #SRODEK
  23. {
  24. width: 900px;
  25. margin: 0 auto;
  26. border-top-style: outset;
  27. }
  28.  
  29. #DOWN
  30. {
  31. width: 900px;
  32. margin: 0 auto;
  33. }


Troche poskracałem twoje zapisy bo nie ma sensu 4 razy ustawiać wartości margin skoro mozna tylko raz

  1. border-top-style: outset;

i po co to? w IE faktycznie jest jakby żółty kolor i tego nie zmienisz

nie wiem tylko czy dokładnie o to chodziło


--------------------
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: 14.08.2025 - 04:22