View Single Post
Old 11-27-2017, 12:30 PM   #1
larysa
Zealot
larysa began at the beginning.
 
Posts: 124
Karma: 10
Join Date: Feb 2016
Device: iPad mini 4
How to make text appear in other colours than white in (iPad) night mode?

Hi, I’ve ePub with this css:
p {
line-height: 1.3em;
}
body#book div.main > p:first-letter {
font-size: 4em;
color: #bd2716;
line-height: 0.75em;
}

and this is the page with my problem:

<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>gfhgjjhvbmb</title>
<link href="css/s0_style.css" rel="stylesheet" type="text/css"/>
</head>

<body id="book">

<div class="main">

<p>Text various text</p>

</div>

</body>

</html>

On my iPad when read this book with night theme (background black and text white) the first letter have color assigned, ok, but if i want all text of this color, not work!
I’ve try to modify on css:
body#book div.main > p:first-letter {
whit:
body#book div.main > p {
but the text don’t have color!! This work correctly with classic theme, bg white, txt black, but if change theme with bg black and txt white, don’t see the color on my text!
How to set color to all paragraphs??
larysa is offline   Reply With Quote