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 10 of 10
  1. #1
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    HTML Coding - Easy One

    What's the coding when you want to put a paragraph of script anywhere on the page. So it can be like 2 inches wide? I don't do much, and I've lost my reference book. I'd be most grateful. Thanks.

  • #2
    Regular Coder Nile's Avatar
    Join Date
    Jun 2008
    Posts
    280
    Thanks
    2
    Thanked 46 Times in 46 Posts
    Code:
    <p style="width: 2in;">Lorem ipsum</p>

  • Users who have thanked Nile for this post:

    Grubup (04-22-2011)

  • #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
    Using absolute measurement units (inches, millimeters, etc) is not a bright idea. In web applications you should use either px (pixels), which are relative to the resolution of the screen or em, which are relative to the closest parent which has a firm set size (in pixels).

    Otherwise your document will look distorted in different resolutions.
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #4
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Kor View Post
    Using absolute measurement units (inches, millimeters, etc) is not a bright idea. In web applications you should use either px (pixels), which are relative to the resolution of the screen or em, which are relative to the closest parent which has a firm set size (in pixels).

    Otherwise your document will look distorted in different resolutions.
    No, the 2 inches were just an example. I want to put a paragraph anywhere on the page, about that size, and without the text given itself a space between the lines. Thanks.

  • #5
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Nile View Post
    Code:
    <p style="width: 2in;">Lorem ipsum</p>
    Thanks very much for that, it works a treat, but might I ask you one more question? I'm trying to write text without it going right across the page. Now some lines are 2 inches long, but if the next line is 3 inches long, how can I make my sentences individually fit? If I leave it at the same length, a sentence will start on the previous line? Thanks again

  • #6
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Thanks very much for that, it works a treat, but might I ask you one more question? I'm trying to write text without it going right across the page. Now some lines are 2 inches long, but if the next line is 3 inches long, how can I make my sentences individually fit? If I leave it at the same length, a sentence will start on the previous line? I suppose what I'm asking is how do a create a space in the text? Thanks again

  • #7
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Sorry, new to this forum. I suppose what I'm asking, what's the coding for writing text anywhere on the page, at any width, and the coding for the spacing I would require.

  • #8
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,335
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Quote Originally Posted by Grubup View Post
    Sorry, new to this forum. I suppose what I'm asking, what's the coding for writing text anywhere on the page, at any width, and the coding for the spacing I would require.
    And obviously new to coding? Why not do some learning on your own. You need to understand some basics of html and css. As Kor pointed out, speaking and thinking in terms of inches in a web application is confusing and at the very least not the most proper wordage and phrasing.

    w3schools.com is a good place to start. Google is also a place to start as well.
    Teed

  • #9
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts
    I do understand the basics. I just used 2inches as a guide. I haven't done HTML for sometime, and I can't find my reference book. I need to write a document for a funeral. All I require to finish it off is to know he code for spacing between words, now. If you can just give me that, I'd be grateful. Thank you

  • #10
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,335
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Teed


  •  

    Posting Permissions

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