Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Oct 2003
    Location
    The wild blue yonder
    Posts
    283
    Thanks
    0
    Thanked 0 Times in 0 Posts

    All this put on 1 line, not 3!

    Hello,

    At my blog test site You'll notice the
    << Hello World! | Gettin' Closer >>
    text in the middle. Just as you see it above, I'd like that all on one line, but can't seem to figure out how to do it. Driving me nuts.

    Anyone?

    The CSS code controlling that is
    Code:
    .alignright {
    	text-align: center;
    	display: inline;
    	}
    	
    .alignleft {
    	text-align: center;
    	display: inline;
    	}
    Thanks!

    Chris

  • #2
    Senior Coder
    Join Date
    Jul 2005
    Location
    UK
    Posts
    1,051
    Thanks
    6
    Thanked 13 Times in 13 Posts
    I'm not entirely sure on how you've implemented your classes here but -

    <div align="center">
    <a href="link1">Link1</a> | <a href="link2">Link 2</a>
    </div>

    it looks like you managed to overcomplicate something really simple...

    You've got both .alignleft and .alignright being text-aligned to the centre, when the entire div should be centred.
    Last edited by Pennimus; 07-13-2005 at 06:39 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •