(I know your very busy, and that you only have a short amount of time to answer someones question, but could you take a little time to explain instead of just spitting out what your saying, that way it becomes a learning experience).
I ment this as a statement not a question, that's why I put it in parenthesis, and the actuall questions numbered.
I say height is a problem because.....well take this for example:
- .main {
-
width:100%;
-
height:100%;
-
border:1px solid #0000;
-
}
I guess I ment it doesn't work with percentages (it does with pixels), but using this will not stretch it across the page.
3. I never work without a doctype but I don't know why you would have this problem either, except that without a doctype, IE puts margin in the wrong place. So instead of being inside the width of your element, it's on the outside.
It's funny because I only have the problem when I do have a DOC type. Try this out, and you'll see what I meen.
[HTML]<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<style type="text/css">
body {
background-color:#000000;
}
.main {
border:1px solid #e00000;
width:100%;
height:100%;
position:relative;
overflow:auto;
}
.left {
float:left;
width:25%;
height:100%;
}
.middle {
float:left;
width:50%;
height:100%;
border-left:1px solid #e00000;
border-right:1px solid #e00000;
}
.right {
float:right;
width:25%;
height:100%;
}
ul {
float:left;
margin:0;
list-style-type:none;
}
a {
float:left;
text-decoration:none;
color:#e00000;
background-color:#000000;
padding:0.2em 0.6em;
border:1px solid #e00000;
font-size:17px;
}
a:hover {
float:left;
color:#000000;
background-color:#e00000;
border:1px solid #000000;
}
li {
display:inline;
}
.heading {
margin-top:80px;
margin-left:200px;
color:#e00000;
}
.contents {
color:#e00000;
margin-left:45px;
}
</style>
</head>
<body>
<div class="main">
<div class="left">
</div>
<div class="middle">
<ul>
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<li><a href="#">Link 3</a></li>
<li><a href="#">Link 4</a></li>
</ul>
<div class="heading">
<h1>Title</h1>
</div>
<div class="contents">
<p>
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
</p>
<p>
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
</p>
<p>
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
<br />
Text Text Text Text Text Text Text Text Text Text Text Text Text
</p>
</div>
</diV>
<div class="right">
</div>
</div>
</body>
</html>[/HTML]
Take off the DOC type and add about 10 more of the paragraphs, and you'll see what I ment on #4.
without a doctype a web page is invalid.
I know that, but is there a way to get the same effect as without a DOC type?
5. Impossible. It can't be worse because html and css are based on your using a doctype. Few things work as they should if you don't use one.
Well then some things should work the way they do without a DOC type.
Thanks, Death