View Single Post
Old 02-08-2022, 07:13 AM   #1
stellatus
Member
stellatus began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Feb 2022
Device: Kindle
headings, always stick to paragraphs

What to do to make headings always stick to paragraphs? Actually, the idea is that they should be sticked to the first two or three lines of a paragraph. In other words: I would like to prevent the header from breaking the page within a single HTML file. All indications are that CSS instructions are responsible for this:
1) page-break-after: avoid
2) page-break-inside: avoid.
However, they do not work. Why? How to solve this problem?
stellatus is offline   Reply With Quote