How would i center a image in the middle of the page in CSS?
All help shall get sexy rep ;]

How would i center a image in the middle of the page in CSS?
All help shall get sexy rep ;]
Margin: Auto;
Yes you can:
fix the width (i.e 90% or whatever)
then "margin: 0 auto;" will fix it to the exact horizontal centre of the page.
Just put the image in the div and it'll align itself inside the div (the div will move to the centre and the image will go with it)
visit my internet web site on the internet
http://dong.engineer/
it is just videos by bill wurtz videos you have been warned
margin-left: auto;
margin-right: auto;
text-align: left;
That should work![]()
Lets set the stage on fire, and hollywood will be jealous.
View the code at pixstudios.net, that has vertical & horizontal centering.
Want to hide these adverts? Register an account for free!