View Single Post
Old 04-30-2022, 10:00 AM   #4
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,366
Karma: 20212733
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
There are several things I would do differently to that code sample...but to fix the image centering issue I would use the code I provided:

<div class="image"><img alt="" src="../images/image0001.jpg"/></div>


Then you need to use the styling information in your linked CSS sheet:

div.image {margin:2em; text-indent:0; text-align:center}
div.image img {width:80%; max-width:300px}

The blue stuff is just an example and you can change it to suit your desires.

I would highly recommend reviewing the CSS/HTML tutorials...some are provided in MR's Wiki, some in W3Schools, or you can google online.
Turtle91 is offline   Reply With Quote