Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> styl CSS "nie łapie"
Yacho
post
Post #1





Grupa: Zarejestrowani
Postów: 148
Pomógł: 0
Dołączył: 16.06.2003

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


Chlopaki az sie glupio pytać ale :
jest taki HTML :
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  3. <link rel="stylesheet" type="text/css" href="style.css" media="screen"/>
  4. <title>testowa strona z divami :)</title>
  5. </head>
  6. <div id="cont">
  7. <div id="top">
  8. </div>
  9. <div id="quote">
  10. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean nulla urna, pulvinar eu, pretium eu, imperdiet vel, pede. Nam vestibulum feugiat ipsum. Duis fringilla cursus nisi. Proin nec neque ac.
  11. </div>
  12. </div>
  13. </body>
  14. </html>


i Taki CSS :
  1. @CHARSET "UTF-8";
  2. <!--[if IE]>
  3. body {
  4. text-align: center;
  5. }
  6. <![endif]-->
  7. div#cont {
  8. width: 80%;
  9. margin: auto;
  10. background-color: #FF0000;
  11. }
  12. div#top {
  13.  
  14. }
  15. div#quote {
  16. width: 50%;
  17. margin: auto;
  18. text-align: center;
  19. }


I jakbym nie kombinował div cont nie dostaje tego stylu. Gdzie sie walnąłem ?
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: 3.10.2025 - 04:50