Newbie Question - aligning images in blocks to center

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
drujr
Forum Newbie
Posts: 17
Joined: Thu May 13, 2004 1:59 pm

Newbie Question - aligning images in blocks to center

Post by drujr »

Hey all

I'm a newbie so bear with me. I cannot find how to have images in blocks automatically align to the center of the column that they are in. check out my website http://www.sickofit.org to get an idea of what i mean (images in the right column, and the bottom left)

Any help would be very appreciated.

thanks for your time
Dave
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

<center> <img> </center>

is one way
User avatar
PrObLeM
Forum Contributor
Posts: 418
Joined: Sun Mar 07, 2004 2:30 pm
Location: Mesa, AZ
Contact:

Post by PrObLeM »

really thats an html issue...you just need to have the location ready for blocks

Code: Select all

<table width=800>
<tr>
<td>Left</td><td>Center</td><td>right</td>
</tr>
</table>
drujr
Forum Newbie
Posts: 17
Joined: Thu May 13, 2004 1:59 pm

Post by drujr »

Thanks fellas! I went back in and checked out the code... there WAS a </center> but no <center>! So I added it in, and it works now. Thanks!
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

just a bit more FYI

you can align <td> tags
<td align=right>
<table border=0 width=100% align=left> < align a table

alot of ways.
Post Reply