PDA

View Full Version : How To Center Image in Table?


Delphi123
August 8th, 2004, 03:06 PM
Dear friends:

May I ask how to center the Mondera Search banner in the bottom half of my site at:

http://www.immortalgems.com

How do I center it perfectly so that the banner is perfectly positioned in midpoint in its place in the table?

Thank you so much.

Benjamin

keith.evans
August 8th, 2004, 03:56 PM
Hi,

I had a look purely thru' curiosity (good job I'm not a cat!) and it is centred in it's own paragraph part of the page, it's the side bar that makes it appear off centre. Try left aligning it in it's paragraph and then view the results.

Delphi123
August 9th, 2004, 09:15 AM
Dear Keith:

Thanks for writing and thanks for the compliment on my site. I've been working hard to make it a great site. If I am lucky, it will be a success.

I appreciate your suggestion about how to center the Search Bar. But I just can't really figure out how to do this. May I ask if you could suggest the specific code to do this?

Please note that the search bar looks perfectly centered in Netscape 7.1, tolerable in IE 6 but badly aligned in Opera 7.53.


Thank you.

Benjamin

Delphi123
August 9th, 2004, 12:37 PM
Dear Keith:

I have corrected the problem by adding align="center" to the first <table> line within the Form section:

<table width="468" cellspacing="0" cellpadding="0" border="0" align="center">

It now looks perfect in Netscape/Mozilla and Opera but it still looks a bit off center in IE.

But here is one more thing:

Please note that the search bar is centered perfectly relative to the text below it in all three browsers. But IE interprets this one way and the other browsers their way.

Any suggestions?

Thanks so much.

Benjamin