Solved

Text not aligning when in cell with image

Posted on 2003-11-14
3
206 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
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 to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

617 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