- Code: Select all
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
to the top of my page, the content is not presented correctly (in IE 6).
Now I can't figure out what I have done wrong, please help me, here is the code:
index.html
- Code: Select all
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Skogalund IT</title>
<link rel="stylesheet" type="text/css" href="micro.css" />
<style type="text/css">
div.content.news
{
border-style: dotted;
border-width: 1px;
margin-top: 10px;
margin-left: 50px;
width: 250;
height: 50px;
}
div.content.news.date
{
font-weight: bold;
border-bottom-style: dotted;
border-bottom-width: 1px;
}
div.content.newsmore
{
position: absolute;
border-style: dotted;
border-width: 1px;
width: 350;
height: 250px;
top: 36px;
left: 350px;
}
</style>
</head>
<body>
<div class="all">
<div class="top">
<h2>Skogalund IT</h2>
</div>
<div class="meny">
<h4>
Nyheter
<a class="obj" href="">Koncept</a>
<a class="obj" href="">Om oss</a>
<a class="obj" href="">Kontakt</a>
<a class="obj" href="admin.html">Admin</a>
</h4>
</div>
<div class="content">
<h4>
<br />
<br />
<div class="news">
<div class="date">2005-05-26</div>
3 Sidan uppdaterad.
</div>
<div class="news">
<div class="date">2005-05-26</div>
2 Sidan uppdaterad.
</div>
<div class="news">
<div class="date">2005-05-26</div>
1 Sidan startad! <a href="">Läs mer</a>
</div>
<div class="newsmore">
...mer info...
</div>
</h4>
</div>
</div>
</body>
</html>
micro.css
- Code: Select all
body
{
background-color: white;
font-family: verdana;
}
div.all
{
border-style: dashed;
border-width: 0px;
margin-top: 20px;
margin-left: 10px;
}
div.top
{
border-style: ridge;
border-width: 5px;
width: 800px;
padding-left: 10px;
}
div.meny
{
border-style: outset;
border-width: 3px;
margin-top: 40px;
padding-top: 10px;
padding-bottom: 10px;
padding-left: 10px;
width: 800px;
}
a.meny.obj
{
margin-left: 10%;
}
div.content
{
border-style: dashed;
border-width: 2px;
margin-top: 10px;
padding: 0px;
width: 800px;
height: 400px;
overflow: auto;
}
h1 { font-weight: bold; font-size: 42 px; padding: 0px; margin: 0 px;}
h2 { font-weight: bold; font-size: 36 px; padding: 0px; margin: 0 px;}
h3 { font-weight: bold; font-size: 24 px; padding: 0px; margin: 0 px;}
h4 { font-weight: bold; font-size: 14 px; padding: 0px; margin: 0 px;}
h5 { font-weight: bold; font-size: 12 px; padding: 0px; margin: 0 px;}
h6 { font-weight: bold; font-size: 10 px; padding: 0px; margin: 0 px;}


