jest taki HTML :
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" type="text/css" href="style.css" media="screen"/> </head> <body> <div id="cont"> <div id="top"> </div> <div id="quote"> 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. </div> </div> </body> </html>
i Taki CSS :
@CHARSET "UTF-8"; <!--[if IE]> body { text-align: center; } <![endif]--> div#cont { width: 80%; margin: auto; background-color: #FF0000; } div#top { } div#quote { width: 50%; margin: auto; text-align: center; }
I jakbym nie kombinował div cont nie dostaje tego stylu. Gdzie sie walnąłem ?