Gouki 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 comment Share on other sites More sharing options...
tarquel 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 comment Share on other sites More sharing options...
Gouki 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 comment Share on other sites More sharing options...
gunsmokingman 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 comment Share on other sites More sharing options...
Gouki 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 comment Share on other sites More sharing options...
gunsmokingman 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 comment Share on other sites More sharing options...
Gouki 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 comment Share on other sites More sharing options...
tarquel 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 comment Share on other sites More sharing options...
Gouki 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 comment Share on other sites More sharing options...
EchoNoise Posted April 12, 2006 Share Posted April 12, 2006 (edited) **Disregard** Edited April 12, 2006 by undeadsoldier Link to comment Share on other sites More sharing options...
Bas 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 comment Share on other sites More sharing options...
Gouki 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 comment Share on other sites More sharing options...
tarquel 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 comment Share on other sites More sharing options...
Gouki Posted April 16, 2006 Author Share Posted April 16, 2006 Heheh. Sorry Now the big problem is on ... verticly. Link to comment Share on other sites More sharing options...
Dumpy Dooby 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 comment Share on other sites More sharing options...
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