View Single Post
Old 07-16-2026, 09:01 PM   #67
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 84,255
Karma: 153715495
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Mr_H_Poirot View Post
Thanks. It is below. I should say it is a bit of a mis-mash as I found a basic boilerplate one online and then I tweaked it

--
Spoiler:

body {
font-family: "Source Sans Pro", serif;
font-size: 1em;
font-weight: 300;
line-height: 140%;
}

/* Headings */

h1, h2, h3, h4, h5, h6 {
font-weight: 600;
line-height: 120%;
page-break-after: avoid;
text-align: left;
}
h1 {
font-size: 2.5em;
max-width: 80%;
line-height: 100%;
}
h2 {
margin: 1.5em 0 0.5em 0;
padding-top: 0.5em;
}
h3 {
margin: 1.5em 0 0.5em 0;
padding-top: 0.5em;
}

/* Paragraphs and related */

p, ul, ol, blockquote, dl {
max-width: 40em;
}
p {
margin: 0;
text-indent: 1.5em;
text-align: justify;
hyphens: auto;
-webkit-hyphens: auto;
}

/* Class for the first paragraph (no indent) */
p.no-indent {
text-indent: 0;
}

p.titlepageauthor {
text-indent: 0;
font-size: 2em;
}

sup {
vertical-align: super;
font-size: 0.8em;
line-height: 0;
}
li p { /* a paragraph inside a list item */
margin: 0;
}

/* Blockquotes */
blockquote {
margin: 0.5em 0 0.5em 0;
padding: 0.5em 1em 0.5em 1em;
font-size: 1em;
line-height: 120%;
border-left: 5px solid #ddd;
max-width: 20em;
}
blockquote p { /* a paragraph inside a blockquote */
margin: 0;
padding: 0;
}
li blockquote { /* a list item inside a blockquote
*/
margin: 1em 0;
}

/* Definition lists, which I use for side-notes */

dl {
color: #666;
border: 1px solid grey;
padding: 1em;
}
dt {
margin: 0 0 0.25em 0;
font-weight: 600;
}
dd {
}

/* Tables */

table {
border-collapse: collapse;
}
th, td {
border: 1px solid #ccc;
padding: 0.5em;
}

/* Code text */

pre, code {
font-family: "Source Code Pro", monospace;
white-space: pre-wrap;
background-color: #f9f9f9;
padding: 0.1em 0.3em;
border-radius: 0.2em;
font-weight: 200;
font-size: 0.9em;
}

/* Links */

a {
text-decoration: none;
color: #5f738c;
}

/*
* Title page
*/

.titlepage-title {
font-size: 2.5em;
font-weight: 700;
margin: 20% 0 0 0;
line-height: 100%;
}
.titlepage-subtitle {
font-size: 2.5em;
font-weight: 400;
margin: 0 0 1em 0;
line-height: 100%;
}
.titlepage-author {
font-size: 1.5em;
margin: 0 0 2em 0;
}
.titlepage-logo {
width: 100px;
}

/*
* Copyright page
*/

.copyright-logo {
width: 100px;
margin: 1em 0;
}

/*
* Table of contents
*/

.toc h2 {
font-weight: 400;
font-size: 1.25em;
margin: 1em 0 0.5em 0;
}
.toc ol {
margin: 0;
padding: 0;
}
.toc ul {
list-style-type: none;
margin: 0 0 1em 0;
padding: 0;
}
.toc li {
margin: 0 0 0.5em 0;
}
.toc a {
text-decoration: none;
}
That CSS is a bit of a mess. It could use some real cleaning up.

What you need is to know what you want and edit the element or class to do what it is you want.
JSWolf is offline   Reply With Quote