Align text in CSS

Hello expert,

Working in SharePoint so CSS is applied in line because there is no
access to the <head>. Code copied herewith below.

Using the vertical-algn:middle attribute in the <span> but the
text stays on the bottom. How can I move the text to the middle of the box.


Allen in Dallas

<table border="1"
<td rowspan="3" valign="middle">
<span style="font-size:20px; color:#006384; vertical-align:text-top;">
<img src="../App_Environs/CCM-icon-b-Sm.gif" width="50" height="50"/>
<td><a href="" target ="new"></a></td>
<td>UAT</td><td><a href="" target ="new"></a></td>
<td><a href="" target ="new"></a></td></tr>

<tr valign="middle">
<td rowspan="1" valign="middle">
<span style="font-size:20px; color:#006384; text-align:top;">
<img src="../App_Environs/SMA-icon-C-Sm.gif" width="50" height="50"/>
<td><a href="http://" target ="new"></a></td>

<tr valign="middle">
<td rowspan="1" valign="top">
<span style="font-size:20px; color:#006384; vertical-align:top;">
<img src="../App_Environs/C4-icon-Sm.gif" width="50" height="50"/>
C4 </span>
<td><a href="#" target + "new""></a></td>
Allen PittsBusiness analystAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
Vertical-align is for use in table cells.

If your span contains a single image or line of text then you can use line-height

style="line-height: 50px";

Where the line-height is the height you want for the span.

Otherwise you will need to look at these styles

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.