PDA

View Full Version : Center content of the guestbook


proticamp
03-31-2006, 04:26 AM
Hi again and congratulation for your good work!
I wonder about how to center the content of my guestbook. My guestbook is this one (http://www.ultraguest.com/view/1102435492). I don't know html, but searching and... improvisating, I entered the followinig code to guestbook header:

<div style="text-align: center;">
<img border="0" align="middle" src="http://www.mysite.com/image.jpg" alt="" /></div><span class="head-text" style="font-family: Tahoma; font-size: 10pt;"><span style="font-size: 10pt;"></span><span style="font-size: 10pt;"></span></span><br />
<span class="head-text" style="font-family: Tahoma; font-size: 10pt;"><span style="font-size: 10pt;"></span></span>
<div style="text-align: center;"><br />
</div>
<table>
</table>
<table width="80%">
<tbody>
<tr>
<td style="width: 25%;"><br />
</td>
<td style="font-family: Verdana;">
<p align="justify"><span style="font-size: 10pt;">Welcome message</td>
</tr>
</tbody>
</table>

When viewing in Firefox 1.5, it's OK :) (although the center position of the welcome message is different when changing screen resolution, but that's not a problem, because every time the text is centered).

But in IE 6 the text of the guestbook does not apper centered, as in Firefox, but moved on the right :(

Could you test it and propose me a solution to put all my guestbook content at the center of the page? (the image is easy, by selecting center alignment but the text? I don't want to transform it to an image and center it, it must be something else, like a table maybe...)
Thanks.

By the way, I like you forum GUI!!! Is it a ready-to-use PHP template that makes it so lovely?

proticamp
04-03-2006, 06:22 PM
Well, I realised that the forum is vBulletin based, but I have not find yet how to center correctly my page... Any help would be appreciated. :o

Andreas
04-05-2006, 09:08 AM
Yes, the vBulletin forum has some limitations.

The guestbook is center-aligned by default, but if you use tables you should make sure to put all of your content inside of the table. You should also ensure that you use correct HTML coding. For instance this does not make too much sense:

<table>
</table>

Here are some good HTML tutorials you might want to check out:

http://www.w3schools.com/html/

proticamp
04-06-2006, 02:44 PM
Thanks for replying! I deleted the <table></table> code (it was a fault), but nothing changed.
I realized that when I put my text content in a cell, which is 80% of the hole page, the guestbook is well centered in IE but NOT in Firefox! But if before the 80% cell I put another cell, sized 25% of the hole page, then the guestbook is well centered in Firefox but NOT in IE!

So, if I delete this part, from previous post code:

<td style="width: 25%;"><br />
</td>

there is a Firefox problem. If I keep this part, there is a IE problem!

Well, it's probably a browser incompatibility problem, as I see.
But if anyone has a piece of code that works well in IE and Firefox too and centers correctly page content in a Ultraguest's forum, please tell me.