Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

image positioning

Status
Not open for further replies.

dijo123

Programmer
Jan 13, 2004
30
SE
I have an image in a menu:
<img src=&quot;foldImg.src&quot; id=&quot;menuId0&quot; width=12 height=12 alt= border=0>
<a href=&quot;#&quot; onclick=&quot;foldmenu(); return false&quot; class=&quot;clFoldLinks&quot; > Menu0 </a><br>

I want this image to be placed about 4 mm (I don't know how many inches) up 'cause it's an arrow and I want the arrow to point at the middle of the text. Like:
-> Menu0

The arrow is pointed at the text row at the moment.
If I change the height it's better but the arrow is larger and I don't want that.
 
Try <img src=&quot;foldImg.src&quot; id=&quot;menuId0&quot; width=12 height=12 alt= border=0 align=&quot;absmiddle&quot;>

Wow JT that almost looked like you knew what you were doing!
 
dijo, its best if you work in the units of pixl8r's name: pixels. <img ... style=&quot;position: absolute; top: 0px; left: 0px;&quot;> but go with pixl8r's reply, its better

~*Gwar3k1*~
&quot;To the pressure, everything's just like: an illusion. I'll be losing you before long...&quot;
 
Thank you very much for helping me.
&quot;absmiddle&quot; seemed to be an easy way, but I could'nt get it work, I have a strange browser called WebC. I go for the &quot;style=&quot;position: absolute; top: 0px; left: 0px;&quot; solution instead. It worked when I changed absolute to relative.

Thank you again!


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top