Pretty new to html / css and all that, but basically.
I have an image on my site, and I want the image in the centre of the page, how do I go about doing this?
Pretty new to html / css and all that, but basically.
I have an image on my site, and I want the image in the centre of the page, how do I go about doing this?
<div align="center"><img href="IMAGE LINK"></div>
<div align="center"><img href="IMAGE #1 LINK"><img href="IMAGE #2 LINK"><img href="IMAGE #3 LINK"></div>
Or as I said above, substitute align for class as appropriate.
Take a look at this
http://www.w3schools.com/html/default.asp
<style>
img.center {
display: block;
margin: 0 auto;
}
</style>
<img class="center" src="http://myawesomeimage.com/image.png" />
Is the preferred way to do it. The div tag's align attribute is not supported in HTML5.
Chippiewill.
That's when Ron vanished, came back speaking Spanish
Lavish habits, two rings, twenty carats
Want to hide these adverts? Register an account for free!