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.

Thanks.

Allen in Dallas


<span>
<table border="1"
<tr>
<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"/>
CCM</span>
<td>Int</td>
<td><a href="http://ccmint.concentra.com/ccm/Login.do" target ="new">http://ccmint.concentra.com/ccm/Login.do</a></td>
</tr>
<tr>
<td>UAT</td><td><a href="http://ccmuat.concentra.com/ccm/Login.do" target ="new">http://ccmuat.concentra.com/ccm/Login.do</a></td>
</tr>
<tr>
<td>QA</td>
<td><a href="http://ccmuat.concentra.com/ccm/Login.do" target ="new">http://ccmuat.concentra.com/ccm/Login.do</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"/>
SMA</span>
<td>Int</td>
<td><a href="http://https://smaint.concentra.com/sm/Login.do" target ="new">https://smaint.concentra.com/sm/Login.do</a></td>
</tr>

<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>Int</td>
<td><a href="#" target + "new"">https://C4_login_URL.concentra.com/sm/Login.do</a></td>
</tr>
</table>
</span>
SMA-icon-c-sm.gif
C4-icon-sm.gif
CCM-icon-b-sm.gif
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

http://www.senktec.com/2014/01/using-css-display-table-cell-for-columns/
0

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
CSS

From novice to tech pro — start learning today.