View Single Post
Old 06-07-2022, 11:33 PM   #5
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,639
Karma: 169712392
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Cepheus View Post
Thanks for the response JSWolf. In the first CSS statement I did specify the border. This is for the 20 or so chapters that use the same image. The second CSS statement is for a specific image that should not have a border:

div.epigraph-facing div.mediaobject img[src="images/e_MapOfLincoln.png"] {
border: none !important;
}

Not sure why but that image does not have a border when viewed on iBooks on the desktop but does have a border when viewed on the iPad.

Any thoughts why that is happening?
Order of evaluation? I've seen issues where some renderers seem to evaluate the stylesheet entries in different orders. I would suggest creating a differently named CSS entry without the border entry and see how it behaves. E.g.:

Code:
div.epigraph-facing div.mediaobject img {
margin: 1em auto;
width: auto !important;
height: auto;
text-align: center;
padding: 0;
border: 2px solid black;
}

div.epigraph-facing div.mediaobject2 img {
margin: 1em auto;
width: auto !important;
height: auto;
text-align: center;
padding: 0;
border: none;
}
DNSB is offline   Reply With Quote