Centering page with CSS
You should design your page wisely before inserting content. You have no sense in the structure. This is only the beginning. You have no stylesheet attached, your page points to your local machine instead. You have the same problem with your images.
Basically you need to tell the "body" or the "container" div, to align the content to the center. If you are using "container" div, tell it to take all the width and height.
Next, place you page content as a div, call it "page". Give it width to contain all of your content, let's say 900px. tell it to be flex, margin:auto will do the job. And to be more protected, text will be aligned to left.
example
HTML:
#container {
width:100%;
height:100%;
}
#page {
width:900px;
margin:auto;
text-align:left;
}
and your page will look like this
HTML:
<div id="container">
<div id="page">
Your content...
</div>
</div>
No offense, but try to be more clean. Your script should look clean and easy to access, for you and for the one that will follow you.
-
Enjoy.
