- Kod: Zaznacz cały
<?xml version="1.0" encoding="iso-8859-2"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
<meta http-equiv="Content-type" content="application/xhtml+xml; charset=iso-8859-2" />
<title> [tytuł strony] </title>
</head>
<style type="text/css">
body
{
margin: 0;
padding: 0;
text-align: center;
background: black;
}
#centruj
{
width: 702px;
text-align: left;
margin: 0 auto;
}
#naglowek
{
margin-top: 100px;
height: 30px;
background: #78C0D8;
}
#lewo
{
float: left;
width: 702px;
background: white;
height: 400px;
}
.clear
{
clear: both;
}
#stopka
{
height: 40px;
background: #78A878;
}
#list
{
margin: 0;
padding: 0;
}
#naglowek li
{
list-style: none;
float: left;
width: 175px;
font-size: 12px;
line-height: 30px;
font-weight: bold;
}
#naglowek a
{
display: block;
text-decoration: none;
text-align: left;
color: white;
border-right: 2px solid white;
padding-left: 10px;
}
#home
{
border-left: 2px solid white;
}
</style>
<body>
<div id="centruj">
<div id="naglowek">
<ul id="list">
<li id="home"><a href="index.html">Strona główna</a></li>
<li><a href="o_firmie.htmk">O firmie</a></li>
<li><a href="omnie.html">O mnie</a></li>
<li><a href="Kontakt.html">Kontakt</a></li>
</ul>
</div>
<div id="lewo">
</div>
<div class="clear"></div>
<div id="stopka">
</div>
</div>
</body>
</html>
Mianowicie chodzi mi o ostatnią część menu - Kontakt, które w Firefoxie kończy się równo z niższym elementem div, natomiast w IE jest to trochę przesunięte. Wie ktoś, co należy zmienić?