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 3 of 3
  1. #1
    mbl
    mbl is offline
    New Coder
    Join Date
    Sep 2004
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Control of text pt size?

    Dear friends,

    Would like page to write this strint of text:

    Point Size 16 Point Size 9 Point Size 12.

    In a single line, no <br> effect.

    Where Point Size 16 prints in point size as said,
    same for Size 9, and also for size 12.

    USING a file xx.css (style sheet) used by the HTML page.

    Have tried

    div.t16 {font-size: 16pt}
    div.t9 {font-size: 9pt}
    div.t12 {font-size: 12pt}

    defined in the style sheet and use them at the html page.

    However, using <div class='t16'>Any text here</div> prints it but finishes with a <br> so this would not allow its use to print a single line with alternating point sizes of text.

    So, how to print a single line that shows text alternating point sizes, using style sheets?

    Thanks for your kind help.

    -mbl-

  • #2
    New Coder
    Join Date
    Oct 2004
    Location
    Hongkong
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts
    use <span> instead of <div>

    it should work
    Homepage: Cyman's World - storing my javascript modules :D

  • #3
    mbl
    mbl is offline
    New Coder
    Join Date
    Sep 2004
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Cyman
    use <span> instead of <div>

    it should work
    Cyman,

    It works just as said and needed.

    BIG thanks, friend.

    -mbl-


  •  

    Posting Permissions

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