Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Text not aligning when in cell with image

Posted on 2003-11-14
3
Medium Priority
?
213 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 1400 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

926 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