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
    New to the CF scene
    Join Date
    Apr 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Breaking a large string into multiple lines

    Hi All,

    I am new to css. Can anybody help me out that how to break a string/text
    into multiple lines while displaying. I need css code for this. Here i am giving one example.

    <%String str = "css forum in coding forums kdsjfl sdlkfjalsdkfja lkdjfa jfj djf"%>
    <html>
    <table>
    <tr>
    <td>str<\td>
    </tr>
    <table>
    <html>

    This code displays the string in one line. But if I need to display it in multiple lines how to do it in css. Any help would be appreciated.

    TIA
    Rakesh

  • #2
    Senior Coder twodayslate's Avatar
    Join Date
    Mar 2007
    Location
    VA
    Posts
    1,042
    Thanks
    67
    Thanked 39 Times in 39 Posts
    Code:
    <div style="width: 100px;">this is a long string of text this is a long string of text this is a long string of text this is a long string of text this is a long string of text this is a long string of text this is a long string of text this is a long string of text </div>
    This should show up in multiple lines.
    Is that what you want?


    Offtopic: My 100th post!
    twitter | Quality Hosting - $5.95/mo*
    Feel free to PM me!


  •  

    Posting Permissions

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