View Full Version : Centering a hyperlink image


doinvinnie
10-06-2003, 03:55 AM
Hi,

I'm more of less just starting out. I can add a hyperlink to an image or center an image, but I can't seem to figure out how to do both. No matter what I try (the image) stays on the left.

On my Enter page I have a large image centered on the page and I want to add the enter image centered right below it.

Thanks

Y3llow
10-06-2003, 05:12 AM
Are you trying to use the align="center" tag? Because I just tried that and it didn't work so try this:

<center>
<a href="your link"><img src="your image"></a>
</center>

Hope this works 4 ya.

SSPrincess
10-06-2003, 03:19 PM
I can think of two other ways of centering pictures:

<div align="center"><a href="http://your_link.html"><img src="your_picture.gif"></a></div>

and

<p align="center"><a href="http://your_link.html"><img src="your_picture.gif"></a></p>

I hope these help. Have a nice day! :)

doinvinnie
10-07-2003, 07:25 PM
Thanks Y3llow & SSPrincess, that worked perfectly! I have another question, I did a search on it but so far everything I've tried hasn't worked. The colored border around the link/graphic.

This is the code I'm using now:

<center>
<a href="http://www.drphilswlcventura.com/forum"><img src="enter.gif"
border="0" width="58" height="28" alt="Welcome">
</center>

No matter where I put the border="0" the border still shows.

Thanks again!

MaGiCSuN
10-07-2003, 08:11 PM
you forgot to close the link:

<center>
<a href="http://www.drphilswlcventura.com/forum"><img src="enter.gif" border="0" width="58" height="28" alt="Welcome"></a>
</center>

Love,
Mirna

doinvinnie
10-07-2003, 09:16 PM
Hi MaGiCSuN

I just tried that but still the border > http://www.drphilswlcventura.com

Any other suggestions? Thanks

lefty
10-07-2003, 09:51 PM
hmm I don't see it, try refreshing the page!

Y3llow
10-09-2003, 11:39 PM
I can't see any border either,possibly, just possibly, IE may be loading the version of that page before you took away the border, which it stored in the temp internet folder. If that is the case then try deleting your temp internet files and look at it again. I know I have had troubles with that when I want to preview my webpage.

djedditt
10-10-2003, 03:17 PM
Try holding down the "CTRL" key while clicking "REFRESH" (for Internet Explorer users). This may cause your browser cache to clear, and then you should be able to see your changes.

-Jay