www.webdeveloper.com
Results 1 to 3 of 3

Thread: Is it appropriate to break lines this way?

  1. #1
    Join Date
    Jun 2006
    Location
    Under your bed
    Posts
    357

    Is it appropriate to break lines this way?

    On my user profiles, the information appears like this, with no spaces in-between the lines:

    Account Type: Basic
    Status: Offline
    Last Activity: December 15th, 2012
    Gender: Female
    Country: United States

    but I used <br />'s and not <p>'s to achieve this. Is that wrong?
    The better I get at programming, the more I appreciate arrays. Handy dandy things they are.

  2. #2
    Join Date
    Feb 2011
    Posts
    231
    Hi,
    It is ok, you can increase the line height (space between lines) using this code in css:
    Code:
    selector { line-height:200%; }

  3. #3
    Join Date
    May 2005
    Location
    Gold Coast (MS)
    Posts
    2,198
    A quick way is to style the "pre" tags to match the style of your page and use them. Use of "<br />" is dependent on your document type (XHTML). There are several other ways, too, but simplest is always best.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles