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
    Regular Coder
    Join Date
    Oct 2006
    Location
    Spain
    Posts
    149
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Cool Justify at center, right and left

    Hi,

    Please, how I output the "following example " in a same line using CSS

    LEFT CENTER RIGHT
    A warm welcome awaits you when
    rapturous applause. The welcome has been so positive
    are welcome and may be made on
    give your warmest Yuletide welcome ever to family
    The text at left it is justified at right
    The text at right it is justified at left
    the keyword = welcome it is justified at center

    Thank you for your patience!

    lebron

  • #2
    New Coder
    Join Date
    Jul 2007
    Location
    Chicago
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What do you mean by "the same line"? You mean one HTML element, like a single <p>tag? Also, looking at your example I'm not sure what you're trying to accomplish visually.

    Do you have an example URL somewhere that looks the same as what you're trying to do?

    My guess is, you could create two or three classes to achieve each type of text effect, then use <br /> and <span> tags within a <p> to make it work.

  • #3
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,387
    Thanks
    32
    Thanked 288 Times in 282 Posts
    It sounds like you want to align the sentences such that all instances of the word “welcome” line up vertically. That was a feature in CSS2, but was removed in CSS2.1. Thus, you can’t do that via CSS.
    For every complex problem, there is an answer that is clear, simple, and wrong.

  • #4
    Regular Coder
    Join Date
    Oct 2006
    Location
    Spain
    Posts
    149
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Yes. it is the example URL

    http://www.websamba.com/terminotics/sampleurl.htm

    Thanks

    Lebron

  • #5
    Senior Coder ahallicks's Avatar
    Join Date
    May 2006
    Location
    Lancaster, UK
    Posts
    1,134
    Thanks
    1
    Thanked 57 Times in 55 Posts
    In the example they gave you just use preformatted text (the <pre> tag) and align it via spaces. Preformatted text means that anything between the <pre> and </pre> tags will look exactly as you want it to, for example spaces won't be cropped as they are in HTML.
    "write it for FireFox then hack it for IE."
    Quote Originally Posted by Mhtml View Post
    Domains are like women - all the good ones are taken unless you want one from some foreign country.
    Reputation is your friend

    Development & SEO Tools

  • #6
    Banned
    Join Date
    Jul 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    While we can't be sure exactly what is responsible for the iPod's success, its user-friendly interface, its superb integration with Apple iTunes, and its killer marketing campaign probably had something to do with it

    www.ipodconverter.com


  •  

    Posting Permissions

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