Log in

View Full Version : HTML Code



Yamba
03-07-2007, 08:43 PM
What's the HTML for centering an image?

Moved by opensourcehost (Forum Moderator) from Web Designing: Please post in the correct forum next time, thanks :).

Jamieb
03-07-2007, 08:44 PM
<center>imageurl</canter> ???

Mashi
03-07-2007, 08:45 PM
<p align="center">
<img src="img">
</p>


Or


<center>
<img src="img">
</center>

Yamba
03-07-2007, 08:54 PM
Many thanks guys, +Rep to both of you!

GoldenMerc
03-07-2007, 08:55 PM
Many thanks guys, +Rep to both of you!
<center>imageurl</canter>
Centre should be
<center>imageurl</center>

Yamba
03-07-2007, 08:58 PM
<center>imageurl</canter>
Centre should be
<center>imageurl</center>

Just a typing error, he ment the same as you did :p

Aflux
03-07-2007, 09:01 PM
HTML:

<div id="image">

</div>

CSS:

#image {
background-image: url(image.png);
background-position: center;

}

Something along those lines.

Mashi
03-07-2007, 09:05 PM
But he said html not CSS :P

ScottDiamond
03-07-2007, 10:57 PM
But he said html not CSS :P

*Tumbleweed*

[Oli]
04-07-2007, 10:50 AM
just using an unnamed div is also an option:


<div align="center">
<img src="imglink" alt="img description" />
</div>

ScottDiamond
04-07-2007, 11:20 AM
Or:

<img src="imglink" alt="img description" align="center" />

If it still works... I've not done it in yonks!

Want to hide these adverts? Register an account for free!