27-09-2009, 22:03
Panowie powiedzcie mi jeszcze czemu to co jest wprowadzone w pliku htm inaczej wyświetla się w przeglądarce Internet Explorer a inaczej w Mozilli?
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
<title>moje</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
<!--
<style type="text/css">
<!--
div.obraz {
float: right;
width: 50%;
border: thin blue solid;
margin: 0.5em;
padding: 0.5em
}
div.obraz p {
text-align: center;
font-style: italic;
font-size: 0.75em;
text-indent: 0
}
img.skalowany {
width: 100%
}
-->
</style>
</head>
<body>
<div class="obraz">
<p><img class="skalowany" src="domek.jpg" alt="Dom" /></p>
<p>Domeczek</p>
</div>
</body>
</html>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
<title>moje</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
<!--
<style type="text/css">
<!--
div.obraz {
float: right;
width: 50%;
border: thin blue solid;
margin: 0.5em;
padding: 0.5em
}
div.obraz p {
text-align: center;
font-style: italic;
font-size: 0.75em;
text-indent: 0
}
img.skalowany {
width: 100%
}
-->
</style>
</head>
<body>
<div class="obraz">
<p><img class="skalowany" src="domek.jpg" alt="Dom" /></p>
<p>Domeczek</p>
</div>
</body>
</html>