Jump to content
  • 0

Стили


Dwarkin
 Share

Question

Добрый день!

Возникла небольшая проблема - при использовании css не все браузеры их отображают, например Mozilla видит, а IE - нет

Использую стили в следующем виде

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
[b] <style>
text {font-size: 12pt; font-family: Verdana, Arial; color: #cf001e}
header {font-size: 14pt; font-family: Verdana, Arial; font-weight: bolder; color: #cf001e}
</style>[/b]
</head>
<body>
<table align=center border=0 width=1024><tr><td>
[b] <header>Заголовок1</header>

<text>текст</text>[/b]
</td></tr></table>
</body>
</html>

Подскажите, что я сделал неправильно?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<style>
.text {font-size: 12pt; font-family: Verdana, Arial; color: #cf001e}
#header {font-size: 14pt; font-family: Verdana, Arial; font-weight: bolder; color: #cf001e}
table {text-align: center; border: 0; width: 1024px}
</style>
</head>
<body>
<table><tr><td>
<div id="header">Заголовок1</div>

<div class="text">текст</div>
</td></tr></table>
</body>
</html>

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy