View Full Version : Centering My Image...


Redkaven
03-24-2003, 06:58 PM
I've tried and tried and cannot get the crap to work. I've tried ALIGN="center" and VALIGN="center" tags.

How do I get my image to center vertically and horzinally?

Thanks in advance,

-Redkaven

Redkaven
03-24-2003, 07:01 PM
Here's the code I have....

<A HREF="" onMouseOver="playSound()" onClick="return false;">
<IMG SRC="aartredkaven_home.gif" BORDER="0" ALIGN="center" VALIGN="center"></A>

I got the image in an iframe that will adjust to screen sizes. I need that image to be aligned in the center vertically and horizonally.

-Redkaven

sabrinastar
03-24-2003, 11:14 PM
u might need 2 do image positioning... i think its under css @ the leia site

Redkaven
03-25-2003, 12:02 AM
it's gotta be able to adjust to the different screen res's... absolute postioning won't do that.

-Redkaven

der4682
03-25-2003, 12:45 AM
<div align=center>
<img src="">
</center>

OR

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

Or have you tried that?

Redkaven
03-25-2003, 12:57 AM
THose don't center it vertically "and" horzionally...

I did find a way to get it to work though.

Thanks anyways

-Redkaven

epolady
03-25-2003, 12:58 AM
Only way to position vertically & horizontally is with tables set at 100% for width & height.

Redkaven
03-25-2003, 12:59 AM
ya, that's what I did...

Borderless table

-Redkaven

pb&j
03-25-2003, 03:28 AM
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td valign="middle" align="center">
<A HREF="" onMouseOver="playSound();" onClick="return false;"><IMG SRC="aartredkaven_home.gif" BORDER="0"></A>
</td>
</tr>
</table>