View Single Post
Old 06-04-2022, 08:43 AM   #1
philja
Addict
philja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enough
 
Posts: 269
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
Help with strange use of span tags

I’ve been helping an author friend to start using Sigil and explaining basic stuff like what the html tags and CSS styles do. She has asked me to explain the function of a <span> she has found at the end of every text paragraph in her novel.

This is not something that Sigil has introduced into her novel but I didn’t see a forum better positioned to ask this question.

A typical text paragraph resembles this example:
Code:
<p class="Content_body">Vivamus .... faucibus, .....  est vel u<span class=”no-break”>ltricies.</span></p>
The span tags enclose typically no more than the last 9 characters in the paragraph even if this means starting in the middle of a word. The stylesheet shows the no-break class to be:

Code:
span.no-break {text-decoration:none;}
The Content_body class already contains the style parameter ‘text-decoration:none;’.

I’m afraid I’ve been unable to see a use for these <span> tags and wonder if anyone can suggest what the designer was trying to do, what eventuality she was trying to guard against?
philja is offline   Reply With Quote