Jump to content

[HTML] Centering text


Recommended Posts

Thanks allot. :)

I had to do a few changes for the pre-formatted text display correctly:

...

<Table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" valign="middle" style="text-align:center;">
<TR>
<TD>


<Table Align="Center"><TD>

<pre>
<b>
________ __ __ ___ ___ ________
/ _____/ ____ __ __| | _|__|/ | \\_____ \
/ \ ___ / _ \| | \ |/ / / ~ \/ / \ \ ___ ___ ___
\ \_\ ( <_> ) | / <| \ Y / \_/. \ _ | . | _| . |
\______ /\____/|____/|__|_ \__|\___|_ /\_____\ \_/ |_||___|_| |_ |
\/ \/ \/ \__> |___|

</b>
</pre>

</TD>



</Table>
</TR>
</TD>

...

Link to comment
Share on other sites


The <pre> tag doesn't imply a font, though. The selected font type is left to the interpreter (the web browser). I'm merely suggesting that you manually insert a font family in there. Such as putting this in your stylesheet:

pre { font-family: "courier new" , "lucida console"; }

Alternatively, you can simply change your <pre> tag to the following:

<pre style="font-family:'courier new','lucida console';">

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...