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 5 of 5
  1. #1
    New Coder
    Join Date
    Aug 2002
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Code for fixed line break size?

    What is the code for line breaks (<br>) of a "fixed" size, such that if a browser's font size is increased/decreased from the top menu bar, the line breaks will still stay the same size?

    In other words, if <style>.fixedfont5{font-size:##px}</style> sets a fixed font size, what would be the equivalent for a fixed line break size?

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    623
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think this will do it:

    .fixedfont5 {
    font-size:##px;
    line-height:##px;
    }

    If so, maybe a Mod should move this thread?

  • #3
    Regular Coder COBOLdinosaur's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    401
    Thanks
    2
    Thanked 30 Times in 30 Posts
    <style>
    br {font-size:50%}
    </style>
    100% standards compliant code is 100% correct 100% of the time.
    one of my toys from my repository and perhaps some help getting help

    Cd&

  • #4
    Regular Coder COBOLdinosaur's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    401
    Thanks
    2
    Thanked 30 Times in 30 Posts
    Or just apply it to the br tag directly with:

    <br class="fixedfont5">
    100% standards compliant code is 100% correct 100% of the time.
    one of my toys from my repository and perhaps some help getting help

    Cd&

  • #5
    New Coder
    Join Date
    Aug 2002
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks so much COBOLdinosaur and Graeme Hackston. I really really appreciate your expert assistance!!! I just discovered this form and you guys make it a real pleasure. By the way, <br class="fixedfont"> was the perfect fix.


  •  

    Posting Permissions

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