OmenVI
Now, say my name.
Just wondering how do you center an image?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
Just wondering how do you center an image?
[center][img]URL[/img][/center]
I tried that. I dunno if it's because I used div with it, but it's just not going in the middle.Code:[center][img]URL[/img][/center]
[div=height: 50%; width: 700px;][center][img]https://images7.alphacoders.com/656/656851.jpg[/img][/center][/div]
Because you have a set width for the div but not set margin to auto it won't center to the entire div itself. So the image is technically centered within the div, but the div itself is not centered.I tried that. I dunno if it's because I used div with it, but it's just not going in the middle.
Code:[div=height: 50%; width: 700px;][center][img]https://images7.alphacoders.com/656/656851.jpg[/img][/center][/div]
So how do I fix that up?Because you have a set width for the div but not set margin to auto it won't center to the entire div itself. So the image is technically centered within the div, but the div itself is not centered.
add margin:autoSo how do I fix that up?
Oh thanks!add margin:auto