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 6 of 6
  1. #1
    New Coder
    Join Date
    Dec 2012
    Posts
    12
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Question Css simple question about text alignment

    Hello everyone,

    I have come up with this problem, thought maybe You could help. :/

    I have a huge welcome text on my website which I want to look like this:

    Huge
    Welcome
    Text


    Notice the text starts at the same point, but what happens to me is:

    Huge
    Welcome
    Text


    How do I do it as a sample above? I have solved this problem by using br tags and nbsp, but it doesn't look professional and is a bit buggy looking so I thought maybe it is possible to code it in css.



    All help highly appreciated,

    Grateful,
    Ren

  • #2
    New Coder
    Join Date
    Dec 2012
    Posts
    12
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Sample of failed text did not appear right so Ill upload an image of what it looks like now: (failure)



    Thank You,

    Ren

  • #3
    Regular Coder
    Join Date
    Dec 2012
    Posts
    121
    Thanks
    15
    Thanked 1 Time in 1 Post
    I dont get you sorry. Are you trying to centralise the text or have it start in the same place?

  • Users who have thanked charlyanderson for this post:

    Renovatio (01-19-2013)

  • #4
    Regular Coder Donkey's Avatar
    Join Date
    Sep 2003
    Location
    Blackfield UK
    Posts
    312
    Thanks
    1
    Thanked 36 Times in 36 Posts
    In your CSS describing " Huge Welcome Text"
    Code:
    text-align: left;
    " 90% of everything is crud" - Theodore Sturgeon
    Filthy Beast - a 60's Rock Band

  • Users who have thanked Donkey for this post:

    Renovatio (01-19-2013)

  • #5
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello Renovatio,
    Can we have a look at your code? It's easier that way than guessing what you're doing.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • Users who have thanked Excavator for this post:

    Renovatio (01-19-2013)

  • #6
    New Coder
    Join Date
    Dec 2012
    Posts
    12
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Hello guys, sorry for being unclear Donkey's answer solved my problem. The problem was I wanted the text to be aligned symetrically left and it came out as it is shown in my uploaded pic. But now it is solved. Thank You very much guys!

    Ren


  •  

    Posting Permissions

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