Center text on entire page despite gif on the left

In the header of my page I have a gif file left justified. Next to it is the title of the page consisting of 3 lines of text.

I want the three lines of text to the right of the image but centered on the entire page. I'm currently using a table (width 99%) and I'm getting the three lines of text centered on the enclosing cell instead if the entire page. I want the text centered on the entire page as if the image was not there.

Is there a way to do that?

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.

You just need to add an extra cell to your table.

Assuming your gif is called headerGif.gif and is 300W x 100H.

Make a new gif either transparent or the color of the background of your header, 1 x 1 pixel, call it blank.gif.


<table border='0' cellpadding='0' cellspacing='0' width='100%'>
<td width='300'>
<img src-'headerGif.gif' width='300' height='100'><br>
<td width='100%' align='center'>
<td width='300'>
<img src='blank.gif' width='300' height='100'><br>

That sets a left and right cell that are the same size, therefore your text will be centered in a cell that is in the center.


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
adgAuthor Commented:
Thanks Sam, that was exactly what I needed.
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.

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.