Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"text-align:center;" ignored when user chooses justifed text #40

Open
Eggheadbooks opened this issue Jun 11, 2018 · 6 comments
Open

"text-align:center;" ignored when user chooses justifed text #40

Eggheadbooks opened this issue Jun 11, 2018 · 6 comments

Comments

@Eggheadbooks
Copy link

Am testing in my Kobo Touch a book I built. The Touch just updated itself to the latest O/S. In the epub, I have sections to mimic a screenplay:

.speaker
	{margin-left: 20%;
	margin-right: 20%;
	margin-bottom:0;
	font-size:1em;
	text-indent:0;
	text-align:center;
	font-family:"Courier New", Courier, monospace;}

When I tested it, if the default (unjustified) text is left as is, no problem; but if I turn justification on, the margins are still respected, but the text-align:center is ignored and reverts to left aligned. I have tried a workaround by adding text-align:center inline styling, but to no avail. Note that this problem does not occur with headings (h1, etc) but it does occur with all other styles that are all center aligned including my title, subtitle, and author styles; for example:

p.Subtitle
	{margin-right:0em;
	margin-bottom:2em;
	margin-left:0em;
	text-align:center;
	text-indent:0%;
	font-size:1.5em;
	font-weight:bold;
	line-height:120%;}

This did not happen in my previous O/S, so I am assuming this is a bug.

@Eggheadbooks
Copy link
Author

Update: turns out, only h1 and h2 are unaffected: I tried a workaround by restyling my title, subtitle, etc., as h3, h4, and so on; this did not work. Perhaps it was always like this but I don't recall so.

@Eggheadbooks
Copy link
Author

Update: this also affects images that are centered.

@bdugas
Copy link
Contributor

bdugas commented Jun 13, 2018

@Eggheadbooks can you send the epub or a sample of it to [email protected]
We'll take a look. Can you also confirm that you're renaming the file .kepub.epub to trigger the Kobo display engine? If you aren't it will be displayed in RMSDK.

@Moilleadoir
Copy link

Still a bug.

@skinkie
Copy link

skinkie commented Sep 7, 2021

An additional problem occurs with text-align: right, which is also overruled.

@sonologic
Copy link

Still a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants