Gouki 0 Posted April 11, 2006 Share Posted April 11, 2006 The text that I want centered is an ASCII art. So I had to use <pre> </pre> so it could look good. Using <h1 style="text-align: center;"> and <div style="text-align: center;"> does not work, because the ASCII art gets all messed up. Any ideas? Thanks. EDIT: Using .CSS Link to post Share on other sites
tarquel 0 Posted April 12, 2006 Share Posted April 12, 2006 (edited) Use CSS bud ;)EDIT:Ahhhh....um...good question then..... Anyone else? lolNath. Edited April 12, 2006 by tarquel Link to post Share on other sites
Gouki 0 Posted April 12, 2006 Author Share Posted April 12, 2006 LOLOL. You had me refreshing the page like a mad man for that?! j/kTake care buddy! Link to post Share on other sites
gunsmokingman 22 Posted April 12, 2006 Share Posted April 12, 2006 Try this <HTML><Head><Body><Table Align="Center"><TD>Here is some text in the center</TD></Table> Link to post Share on other sites
Gouki 0 Posted April 12, 2006 Author Share Posted April 12, 2006 Thanks for the tip, it did worked, a little bit ... LOLThe ASCII art moved a little bit to the right, it did not get centered tho.This is what I have now:...<Table Align="Center"><TD> <pre><b> ________ __ __ ___ ___ ________ / _____/ ____ __ __| | _|__|/ | \\_____ \ / \ ___ / _ \| | \ |/ / / ~ \/ / \ \ ___ ___ ___\ \_\ ( <_> ) | / <| \ Y / \_/. \ _ | . | _| . | \______ /\____/|____/|__|_ \__|\___|_ /\_____\ \_/ |_||___|_| |_ | \/ \/ \/ \__> |___| </b> </pre></TD></Table>... Link to post Share on other sites
gunsmokingman 22 Posted April 12, 2006 Share Posted April 12, 2006 I got it to center but what you want to display did not look good<HTML><Head><Body><Table><TD Align="Center"><pre><b> ________ __ __ ___ ___ ________ / _____/ ____ __ __| | _|__|/ | \\_____ \ / \ ___ / _ \| | \ |/ / / ~ \/ / \ \ ___ ___ ___\ \_\ ( <_> ) | / <| \ Y / \_/. \ _ | . | _| . |\______ /\____/|____/|__|_ \__|\___|_ /\_____\ \_/ |_||___|_| |_ | \/ \/ \/ \__> |___| </b></pre></TD></Table> Link to post Share on other sites
Gouki 0 Posted April 12, 2006 Author Share Posted April 12, 2006 That's the problem. I also got it centered, but because I need everything pre-formatted it will not look good.I need a way of centering and still use the PRE tags. Link to post Share on other sites
tarquel 0 Posted April 12, 2006 Share Posted April 12, 2006 sheesh - its even more complex than what I thought you had meant lolthere may be a way, but i think your best bet is to make a very basic .gif of:________ __ __ ___ ___ ________ / _____/ ____ __ __| | _|__|/ | \\_____ \ / \ ___ / _ \| | \ |/ / / ~ \/ / \ \ ___ ___ ___\ \_\ ( <_> ) | / <| \ Y / \_/. \ _ | . | _| . |\______ /\____/|____/|__|_ \__|\___|_ /\_____\ \_/ |_||___|_| |_ | \/ \/ \/ \__> |___|and use that with tables and / or layers.CheersNath Link to post Share on other sites
Gouki 0 Posted April 12, 2006 Author Share Posted April 12, 2006 That's an idea. I would prefer not to, however, if there is not way of having it centered, I'll do it. Link to post Share on other sites
EchoNoise 1 Posted April 12, 2006 Share Posted April 12, 2006 (edited) **Disregard** Edited April 12, 2006 by undeadsoldier Link to post Share on other sites
Bas 0 Posted April 13, 2006 Share Posted April 13, 2006 (edited) Try this<Table Align="Center"><TD> <pre><b> ________ __ __ ___ ___ ________ / _____/ ____ __ __| | _|__|/ | \\_____ \ / \ ___ / _ \| | \ |/ / / ~ \/ / \ \ ___ ___ ___\ \_\ ( <_> ) | / <| \ Y / \_/. \ _ | . | _| . |\______ /\____/|____/|__|_ \__|\___|_ /\_____\ \_/ |_||___|_| |_ | \/ \/ \/ \__> |___|</b> </pre></TD></Table>It looks the same but it's not. Your code is good but you have some spaces at the right side of your text. I deleted spaces. Edited April 13, 2006 by Bas Link to post Share on other sites
Gouki 0 Posted April 13, 2006 Author Share Posted April 13, 2006 Great. It worked. Thanks allot buddy. Just need a way to center it vertically now Link to post Share on other sites
tarquel 0 Posted April 15, 2006 Share Posted April 15, 2006 lmao I thought that *was* the problem lolHorrizontally shouldnt have been a prob dude lol ;)CheersNath Link to post Share on other sites
Gouki 0 Posted April 16, 2006 Author Share Posted April 16, 2006 Heheh. Sorry Now the big problem is on ... verticly. Link to post Share on other sites
Dumpy Dooby 0 Posted April 16, 2006 Share Posted April 16, 2006 valign="middle"Also, make sure you set the font-family to a set of monospaced fonts. Link to post Share on other sites
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now