Small HTML question

This is a discussion on Small HTML question within the Tech Board forums, part of the Community Boards category; Anyone know how (or if possible) to change the spacing between lines using HTML? Hopeing to do it without doing ...

  1. #1
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681

    Small HTML question

    Anyone know how (or if possible) to change the spacing between lines using HTML? Hopeing to do it without doing anything really annoying like invisible tables (shudder).
    To clarify: Line spacing such as double spacing or 1.5 spacing
    Last edited by Thantos; 12-27-2003 at 02:05 AM.

  2. #2
    Registered User
    Join Date
    Jan 2003
    Posts
    648
    Code:
    <p style="line-height: 1.5">
      ...
    </p>

  3. #3
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    ::edit::

    damn beaten to it...but my example was nicer

    >>post yours then

    ok,
    and i spruced it up a bit too, changed a thing or two
    PHP Code:
    <html>
        <
    head>
            <
    style type="text/css">
                .
    dblspcPara {line-height:200%;}
            </
    style>
            <!-- 
    NOTE THAT LINE HEIGHT CAN ALSO BE PIXELS OR PT.'S -->
        <body>
            <p>
                Some normal spaced text. Some normal spaced text. Some normal spaced text.
                Some normal spaced text. Some normal spaced text. Some normal spaced text.
                Some normal spaced text. Some normal spaced text. Some normal spaced text.
                Some normal spaced text. Some normal spaced text. Some normal spaced text.
            </p>
            <br />
            <p class="dblspcPara">
                This is some double spaced text. This is some double spaced text. This is some double spaced text.
                This is some double spaced text. This is some double spaced text. This is some double spaced text.
                This is some double spaced text. This is some double spaced text. This is some double spaced text.
                This is some double spaced text. This is some double spaced text. This is some double spaced text.
            </p>
        </body>
    </html> 
    Last edited by Waldo2k2; 12-27-2003 at 11:11 AM.
    PHP and XML
    Let's talk about SAX

  4. #4
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Thanks. Hey Waldo post yours then

  5. #5
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    did the example help?
    PHP and XML
    Let's talk about SAX

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question about small tutorial closing
    By Matamoros123 in forum C++ Programming
    Replies: 3
    Last Post: 10-06-2006, 10:55 AM
  2. 1 small question
    By paulntysmom in forum C Programming
    Replies: 2
    Last Post: 04-11-2006, 10:46 AM
  3. Small Client Question
    By Stack Overflow in forum Networking/Device Communication
    Replies: 2
    Last Post: 02-01-2005, 03:26 PM
  4. HTML Question
    By Refresh in forum Tech Board
    Replies: 5
    Last Post: 09-28-2002, 01:53 PM
  5. html question
    By canine in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 08-03-2002, 07:23 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21