Thread: How do you center images?
Results 1 to 5 of 5
Related
-
One pixel off in IE - center div Forum: CSS Forum
Replies: 1 -
center webpage in browser always Forum: HTML Forum
Replies: 5 -
Frame center Forum: HTML Forum
Replies: 5
-
06-09-2001, 04:36 PM #1
How do you center images?
basically how do you center images? I need to know. Please will you help me?
-
06-09-2001, 04:51 PM #2
<center><img></center>
-
06-21-2001, 06:15 PM #3
there are other ways as well...
<p align="center"><img</p>
<table border="0" align="center"><tr><td><img></td></tr></table>
But as you can see Allyn's way takes up less room.Last edited by HTML; 03-09-2012 at 09:03 AM.
-
11-10-2007, 02:38 AM #4
Re: How do you center images?
<img src="Images/VD1.bmp" alt="View Demo" style="border:none; text-align:center" />
For ASP.NET
-
11-10-2007, 04:07 AM #5bald headed old fart
Status- Offline
Join Date- Aug 2003
Location- chertsey, a small town 25 miles south west of london, england.
Posts- 739
Re: How do you center images?
Hi there sunny_popali,
and a warm welcome to these forums.
The thread to which you have just replied is over six years old.
Worse than that the solution that you proposed, would not center the image horizontally, although your reasoning was on the right lines.
You may, possibly, have been thinking of this...
Code:<div style="text-align:center"> <img src="some_image.jpg" alt=""> </div>