Hey everyone, I am basically completely new to dreamweaver. I am trying to set up a very simple webpage, and I have it all layed out with div tags, etc. The one thing I cannot figure out for the life of me right now if how to center the content on the page, as well as have it center under any resolution screen. I have read dozens of threads on it, and have the code to do it. But my problem is that I do not know code at all, and therefore I do not know how to insert the code to make it work. Plus, Ive been working with design view for everything else and all I need code for is to center the page. To be honest im not trying to be a professional web designer so I dont want to read through 500 pages of code manual (that I bought...) to figure it out, I just want to center my web page already
THE HTML:
HTML Code:
<body>
<div class="wrapper"> ALL content goes here </div>
</body>
THE CSS: body {
text-align : center ;
}
div.wrapper {
text-align : left ;
margin-left : auto ;
margin-right : auto ;
}
1. Does it make a difference if I use the css code or the html code?
2. Where / how do I insert this code into the code screen?? I tried to put it in at the bottom, I tried put it in at the top, I tried to wrap it around other content, etc. I just dont know and thats the one thing none of these threads tell you, is where / how to put it in...
for html code, it says "all content goes here" are you supposed to copy that code in, and then copy every bit of existing code into that?"
If it would help to see the existing code I will put it up.
Please help me!
Last edited by chrishirst; 04-24-2010 at 06:57 AM..
|