How to center the alignment div correctly?

I'm having trouble correctly centering my site

It seems to be centered when I zoom out. but for a user who does not downscale, he looks out of place. any suggestions? The site was created using all sections of the AP, it does not center correctly, even if you try to use the following:

<div align="center"> 
+4
source share
3 answers

Try margin:0 auto; for the container div to align your div :)

See example

See full-screen result view.

+5
source

your design is wrong in my opinion. you must:

 <body> <div id="wrapper"> <div id="header"> from apdiv1 to 31 </div> <div id="content">*/instead of blockquote*/ put content </div> <div id="footer"> put content</div> </div> </body> 

with css body {background-image: concrete bkg.jpg}

 #wrapper{margin:0 auto} 

more more ... brgds

-1
source

In css

add property

 body { text-align:center; margin:0 auto; } 
-1
source

Source: https://habr.com/ru/post/1442891/


All Articles