View Single Post
Old 05-03-2019, 08:49 AM   #30
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,363
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 patrik View Post
It's very useful to actually read the earlier posts to understand what the wished outcome is. (Your example does not give that.)

How about you read the posts, and then make an example, without line-height or display:block which gives that outcome.

Can you do that?
Actually the CSS example he uses will achieve what was asked, he just did not include the html code:

Code:
<h3>Chapter 1</h3>
<p class="line2">The Ending of the Beginning</p>
The reason I don't like that approach is it is not minimalist, and causes issues with the auto TOC functions. You would need to add the following title attribute:

Code:
<h3 title="Chapter 1 The Ending of the Beginning">Chapter 1</h3>
<p class="line2">The Ending of the Beginning</p>
My example does that all in one, minimalist, fell swoop...and it makes it much easier for a human to read the code:

Code:
<h3>Chapter 1 <span>The Ending of the Beginning</span></h3>

Last edited by Turtle91; 05-03-2019 at 08:52 AM.
Turtle91 is offline   Reply With Quote