View Single Post
Old 08-29-2019, 10:45 AM   #2
Frenzie
Wizard
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
Posts: 1,754
Karma: 730681
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
It actually centers the image in legacy, flat, and book. Not in web.

I'd be inclined to suspect something like (inline-)block more than text-align.

Edit: I can confirm that it works fine if you minimize it to just a text-align testcase. I don't have time to figure out where the problem comes in precisely though. I'm not sure if inline-block is actually supported; it could be as simple as that.

Simplified test:

Code:
<!DOCTYPE html>
<html>
<head>
<title>The Author</title>
</head>
<body>
<div class="chapter-title" style="text-align:center"><div class="chapter-title-decoration-above"><div class="chapter-title-decoration-above-inner"><img alt="image" class="chapter-title-decoration-above" src="./OEBPS/Images/chapter_title_above.png"/></div>
</div>
<h1 class="chapter-title">The Author</h1>


<div class="chapter-title-decoration-below"><div class="chapter-title-decoration-below-inner"><img alt="image" class="chapter-title-decoration-below" src="./OEBPS/Images/chapter_title_below.png"/></div>
</div>
</div>
<p class="first-in-chapter"><span class="first-chapter-phrase"><span class="first-in-chapter character-s">S</span>TEPHEN BUTLER LEACOCK</span>(December 1869 – March 1944) was born in England and moved to Canada when he was six years old. He became a Canadian teacher, political scientist, writer, and humorist.</p>
<p>Early in his career, Leacock turned to fiction, humour, and short reports to supplement (and ultimately exceed) his regular income. His stories, first published in magazines in Canada and the United States and later in novel form, became extremely popular around the world. It was said in 1911 that more people had heard of Stephen Leacock than had heard of Canada. Also, between the years 1915 and 1925, Leacock was the most popular humorist in the English-speaking world. </p>
<p>Leacock died of throat cancer in Toronto in 1944. A prize for the best humour writing in Canada was named after him, and his house at Orillia on the banks of Lake Couchiching became the Stephen Leacock Museum.</p>
</body>
</html>

Last edited by Frenzie; 08-29-2019 at 10:58 AM.
Frenzie is offline   Reply With Quote