View Single Post
Old 02-01-2024, 05:40 PM   #44
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,630
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by paperwhite13 View Post
There is one thing I was wondering about - new chapter pages, which are styled like this:
1.
Chapter Title

2.
Chapter Title

Saying I want to keep the number and the dot, which are styled differently (in terms of size, margins and font type) than the Chapter Title, how should that be tagged semantically? Should it also be an <h1 class="chapter-number"> with different properties? Before that, I thought about making it <h4>
I also use the method mentioned by others in the previous few posts...

PHP Code:
  <h3>Chapter 1</h3>
  <
class="chapterh3">Divinity AvenueCambridge<br/>18 October1:00 p.m.</p
Which is then styled in the css as...
PHP Code:
h3 {
  
displayblock;
  
font-size1.3em;
  
font-weightbold;
  
font-stylenormal;
  
font-family"Futura Std Medium"sans-serif;
  
margin-top2em;
  
margin-bottom0;
  
text-indent0;
  
text-alignleft;
  
/*  text-transform: uppercase;
  text-decoration: underline;*/
}
.
chapterh3 {
  
displayblock;
  
font-size1.2em;
  
font-weightbold;
  
font-stylenormal;
  
font-family"Futura Std Medium"sans-serif;
  
margin-top1.5em;
  
margin-bottom0;
  
margin-right0;
  
text-alignleft;
  
text-indent0;
  
/*text-transform: uppercase;*/
  /*text-decoration: underline;*/

Which then looks like the below image (for the current book I am reading)

Sometimes I will use the title tag to incorporate the chapter name with the chapter number in the TOC, but I didn't think it was necessary in this case, plus it would be too long for the TOC and make it wrap.

And the styling is easy to change with each book.
(note the enlarged first letter )
Attached Thumbnails
Click image for larger version

Name:	splitheading.jpg
Views:	798
Size:	62.7 KB
ID:	206156  
Karellen is online now   Reply With Quote