Solved

Text not aligning when in cell with image

Posted on 2003-11-14
3
165 Views
Last Modified: 2010-04-09
I have an image and text in the same cell of a table. Both the image and the text change when either are hovered over and they have the same action when clicked on, so separating them into different cells is not really an option as they must be in the same <a> tag.

Now to the point, the image fits fine in the cell, but the text will not vertically align to the middle! I have tried aligning the <td> tag, the style in the css everthing I can think of, but the text is still at the bottom of the cell. What can I do?

Thanks,
H

www.d6online.co.uk
0
Comment
Question by:wjdashwood
  • 2
3 Comments
 
LVL 31

Accepted Solution

by:
seanpowell earned 350 total points
ID: 9747483
Change your image tag to:

<img src="myimage.gif" align="absmiddle">
0
 

Author Comment

by:wjdashwood
ID: 9747548
fantastic! I have been trying to solve that one for ages! :>
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9747595
You're welcome!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now