Thread: Div Alignment
View Single Post
  #7 (permalink)  
Old Sep 3rd, 2006, 21:19
escaflowne11 escaflowne11 is offline
Up'n'Coming Member
Join Date: Aug 2006
Location: California
Age: 20
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Div Alignment

Let me bring the thread back to life for a second. Let me make sure what I am doing wrong here, and hopefully Ill understand! This is the Index file right here...

Quote:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="content.css" />
<title>Scoff Skateboarding</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>
<body>
<div class:main>Content Goes here</div>
</body>
</html>
And this is the CSS file Im working with. This is what I am compleatly new to, so let me know what I am doing wrong if I am anywhere!

Quote:
/* CSS Document */

h1
{
color: #0099FF
}

h2
{
}

body
{
background-color:#005fa4;
background-image:url(Backing copy.gif);
background-position:top;
background-repeat:repeat-x;
}

div.main
{
border:2px;
border-color:#000000;
width: 600px;
height: 400px;
position: absolute;
right: 50%;
}
Now, I dont know much about it, but the background propertys are working great in firefox. I dont know if all the propertys will work in other browsers, but so far so good for me...

Its the Div command Im using thats not working. It dosnt look like I am having any control over my Div propertys at all. How can I pull this stuff off?
Reply With Quote