Not really anything to do with PHP, but I love this forum so much, I dont want to look for another one.
😃
Anywho, I am trying to migrate from tables and such into CSS2. I hear it's the way to go. So I am reading a tutorial found at http://www.richinstyle.com and I have already hit a snag.
I've got this very basic code:
<html>
<head>
<style type="text/css">
<!--
#adbar {
posistion:fixed;
height:20%;
border: 1px solid #000000;
}
#menu {
posistion:fixed;
width:20%;
top:20%;
border: 1px solid #FF0000;
}
#main {
posistion:fixed;
top:20%;
left:20%;
border: 1px solid #00FF00;
}
-->
</style>
<body>
<div id="adbar">Adbar</div>
<div id="menu">Menu</div><div id="main">Main content</div>
</body>
</html>
That is supposed to output something like this:
___________________________
| adbar |
| |
|__________________________|
| menu | |
| | main |
| | |
| | |
| | |
| | |
| | |
|_______|__________________|
But...I get something like this:
[CODE]
| adbar |
| |
|menu | |
|Main content |
[/CODE]
Could someone help me to understand why this is happening?
The direct link to the real example is here:
http://www.richinstyle.com/guides/positioning2.html#fixedexample
Thanks. 🙂