Hey everyone,
I was wondering if anyone would be able to help me figure out the code that will allow me to centre div layers in Dreamweaver 8? I've read around and figured out that I need to use CSS, but I don't know where to put the CSS code in relation to the div etc.
So, I have my layer (and the rest of the site):
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
width:200px;
height:115px;
z-index:1;
}
-->
</style>
</head>
<body>
<div id="Layer1"></div>
</body>
</html>
I understand that the relevant bit is the CSS bit, but I'm not sure to do with it.
I've realised that absolute is not the way to go from this thread here on some other forum:
Sorry if it's not allowed to link to other sites btw - feel free to edit it out :S
http://www.daniweb.com/techtalkforums/thread60286.html
But that just confuses me even further, and I have no idea what to do.
Any and all help would be much appreciated.
Thanks everyone,
Andrew