Centering Text

Trying to center text horizontally.

The CSS
.item-thumbs .hover-wrap .overlay-img-thumb {
	position: absolute;
	top: 50%;
	margin: -16px 0 0 0;
	color: #FFFFFF;
	font-size: 32px;
	line-height: 1em;
	
	opacity: 1;
	filter: alpha(opacity=100);
}

Open in new window

The link
http://www.davidschure.com/Template/brushed/index.html


<!-- Video Sexy Face and Filter Name -->
                        	<li class="item-thumbs span3 video">
                            	<!-- Fancybox - Gallery Enabled - Title - Full Image -->
                            	<a class="hover-wrap fancybox-media" data-fancybox-group="video" title="Sexy Face" href="https://www.youtube.com/watch?v=THCHsaf_is0">
                                
                                	<span class="overlay-img"></span>
                                    <span class="overlay-img-thumb">Sexy Face</span>
                                </a>
                                <!-- Thumb Image and Description -->
                                <img src="_include/img/Videos/Sexy-960.jpg" alt="Sexy Face">
                            </li>
                        	<!-- End Video Sexy Face -->

Open in new window


.item-thumbs .hover-wrap .overlay-img {
	position: absolute;
	width: 100%;
	height: 100%;
	/*background: #DE5E60;*/
	/*background:#f8e45b;*/
	background:#1a29f3;
	
	opacity: 0.60;
	filter: alpha(opacity=60);
}

.item-thumbs .hover-wrap .overlay-img-thumb {
	position: absolute;
	top: 50%;
	text-align:center;
	/*margin: -16px 0 0 0;*/
	margin: -16px auto;
	color: #FFFFFF;
	font-size: 32px;
	line-height: 1em;
	
	opacity: 1;
	filter: alpha(opacity=100);
}

Open in new window

DS928Asked:
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.

DS928Author Commented:
This is close.  Works for text on one line but not two.
position: absolute;
            display: inline-block;
            top: 50%;
            bottom: 50%;
            right: 20%;
            left: 20%;
			margin-top:-16px;
			margin=bottom:-16px;
			font-size: 32px;
			line-height: 1em;
            color: #FFFFFF;
            text-align: center;
			opacity: 1;
			filter: alpha(opacity=100);

Open in new window

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
DS928Author Commented:
I figured it out myself
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.