ClulessChris
IS-IT--Management
I'm trying to get to grips with CSS and move away from the use of tables, but I'm very new to this.
As a start i'm trying to create a 2 column layout, but don't get the desired results (IE6).
the paragraph in the "layer2" div is aligned to the left of the page an seems to sit outside the div.
where am I going wrong?
p.s.
can you suggest a good resource to give me an introduction to css (books, websites, whatever)?
Never knock on Death's door: ring the bell and run away! Death really hates that!
As a start i'm trying to create a 2 column layout, but don't get the desired results (IE6).
the paragraph in the "layer2" div is aligned to the left of the page an seems to sit outside the div.
where am I going wrong?
Code:
<html>
<head>
<title>CSS Test - Testbed</title>
<style type="text/css">
h1
{
text-align: center;
color: blue;
font-family: Arial;
font-size: 150%
#layer1
{
background-color : #FFCC66;
border-width : 3px;
border-style : solid;
border-color : black;
width : 300%;
top : 10px;
left : 10px;
position : absolute;
z-index : 90;
}
#layer2
{
background-color : #FFCC66;
border-width : 3px;
border-style : solid;
border-color : black;
width : 900%;
top : 10px;
left : 3000px;
position : absolute;
z-index : 90;
}
</style>
</head>
<body >
<div ="layer1">
<p>This is a side bar that would be used for navigation</p>
</div>
<div ="layer2">
<h1>Main content</h1>
<p>This is the main content section of the page</p>
</div>
</body>
</html>
p.s.
can you suggest a good resource to give me an introduction to css (books, websites, whatever)?
Never knock on Death's door: ring the bell and run away! Death really hates that!