View Single Post
Old 07-21-2022, 09:31 AM   #14
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,369
Karma: 20212733
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by JSWolf View Post
I'm going to disagree with you here (sort of). You example has a font size of 1.1em being changed to a font size of 1em. That sort of thing should never happen. I can see the classes where the font sizes match, but when they don't, don't have the program assume. Similar is not the same and you could be blowing away code you actually want to keep.
I'm also going to agree with Jon here (sort of)
I honestly didn't read all of Tex' post (only so many hours in the day... ), but I definitely know of circumstances where you would want a font-size of 1.1em. This definitely would not be for the whole book, only specific sections.

For example, if the book font is generally a sans-serif and I want a section to be serif, then I'll give the serif section a slightly larger font-size. The standard serif fonts I work with tend to be slightly smaller than the sans- so I need to bump the size up slightly to even up the look.

Conversely, I will usually reduce the font-size whenever I use <strong> {font-weight:bold; font-size:.9em} (or maybe .95em) to make it fit a little better with the rest of the words.

And yes, Jon, I do use <strong> especially in things like a glossary...the term is strong and the definition is normal...I usually put it in a hanging indent.

Code:
<div class="hang">
  <p><strong>term -</strong> term details</p>
  <p><strong>term -</strong> term details</p>
  <p><strong>term -</strong> term details</p>
</div>
...and also yes, I know that the better semantic elements would be <dl><dt><dd> but this is an example...
Turtle91 is offline   Reply With Quote