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 4 of 4
  1. #1
    Regular Coder
    Join Date
    Apr 2011
    Posts
    107
    Thanks
    18
    Thanked 0 Times in 0 Posts

    How can I place text in 1 div but have each text aligned differently?

    I am new to all this..but i cant seem to add text in 1 div and then align the text differently...what i have tried is creating different divs for different text but then the text gets pushed down when i preview in browser.

    I want to be able to include this text:

    12:00
    Arsenal V Chelsea
    Premiere League Football

    ------------------------------------------------
    Thank you in advance!

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,854
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Code:
    12:00<br>
    Arsenal V Chelsea <br>
    Premiere League Football
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    Hopefully:
    Code:
    16:10<br>
    Manchester United V Chelsea<br>
    3-0<br>
    Premier League Football


    By the way, a typo: it is Premier League, not Premiere League
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • Users who have thanked Kor for this post:

    shakoor6 (05-06-2011)

  • #4
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    Quote Originally Posted by Kor View Post
    Hopefully:
    Code:
    16:10<br>
    Manchester United V Chelsea<br>
    3-0<br>
    Premier League Football
    Most games start at 3pm so this isn't the final score
    "I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
    Validate your HTML and CSS


  •  

    Posting Permissions

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