Closed Thread Icon

Preserved Topic: text and image alignment. (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=17955" title="Pages that link to Preserved Topic: text and image alignment. (Page 1 of 1)" rel="nofollow" >Preserved Topic: text and image alignment. <span class="small">(Page 1 of 1)</span>\

 
bunchapixels
Neurotic (0) Inmate
Newly admitted
posted posted 05-10-2001 06:50

hi peoples.
i have an offline site in development.
i have an a href linked around an image and some text.
on mouseover, the image and text color change.
good so far, except i want both the image and text to be vertically centred.
right now, the bottom of the image is in line with the bottom of the text, and i want the centre of the text to be in line with the centre of the image.
is there a way of doing this, and keeping the items within the one href tag?
...or what other solutions would you suggest?

thanks.

___________________
b u n c h a p i x e l s

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 05-10-2001 07:10

This works only in IE:

<IMG SRC="bla.gif" WIDTH="233" HEIGHT="49" BORDER="0" ALIGN="absmiddle"> Some text here

bunchapixels
Neurotic (0) Inmate
Newly admitted
posted posted 05-10-2001 07:24

well, its a start! thanks max!
...any other suggestions?
eg - easiest way to change text color, other than a:hover?

___________________
b u n c h a p i x e l s

ShadowImage
Nervous Wreck (II) Inmate

From: Melbourne, Victoria, Australia
Insane since: Mar 2001

posted posted 05-10-2001 14:18

Are you using a:hover to change the colour of the text? Cos I don't think it works in NS 4
Also not sure if I understand, is the text overlapping the image?
If its below the image then try this :
<p align="center"><a href="alink.html"><img src="animage width="whatever height="whatever"><br>
This is the text</a></p>
hmmm?? probably don't need to use <p> tag....but anyways

kars10
Bipolar (III) Inmate

From: Europe
Insane since: Mar 2001

posted posted 05-10-2001 16:19

I think to solve that for NN I made a table once.
Yes, The borders to 0 and the allignment in the cell to middle.
It only works with a little text though because otherwise the table gets funny looking!
k10

« BackwardsOnwards »

Show Forum Drop Down Menu