Adding a div tag within a div tag

I'm using Dreamweaver CS3 (but am really rusty).  I want to have a div tag that is 640 pixels in width and in the very centre of the screen at all times.  I also need to be able to insert sub-div tags, so that I can place specific images.

If you could give me some tips (or code), I'd really appreciate it.
Andy BrownDeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

s8webCommented:
Here ya go, this should give you a good start.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
<title>Centered H and V</title> 
<style type="text/css" media="screen">
<!--
body 
	{
	margin:0px;
	background:#f2ede9;
	font-family:Arial, Helvetica, sans-serif;
	font-size:11px;
	}
a{color:#fff;text-decoration:none;}
#container       
	{
	position: absolute;
	top: 50%;
	left: 0px;
	width: 100%;
	}
#content    
	{
	margin-left: -320px;
	position: absolute;
	top: -240px;
	left: 50%;
	width: 640px;
	height: 480px;
	background:#ebebeb;
	border:1px solid #ccc;
	color:#000;
	}
.innerdiv{
	/*Define your inner div's here*/
	padding:15px;
	}
--></style>
</head>
<body>
	<div id="container">
		<div id="content">
        	<div class="innerdiv">Put stuff in here</div> 	
        	<div class="innerdiv">Put stuff in here</div> 	
        	<div class="innerdiv">Put stuff in here</div> 	
		</div>
	</div>
</body>
</html>
    

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Andy BrownDeveloperAuthor Commented:
That's awesome - thank you.

Is it possible to add additional div tags within contect, so that I can position additional elements?

Thanks again - that's a great help.
0
s8webCommented:
Sure is, I added .innerdiv as an example.
0
Andy BrownDeveloperAuthor Commented:
I think I have it - can I draw the div tags manually and then set the CSS Style?
0
Andy BrownDeveloperAuthor Commented:
PS - Thanks again for all of the help.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Dreamweaver

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.