Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 02-27-2017, 01:01 PM   #1
spamis
Junior Member
spamis began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Feb 2017
Device: none
Unordered list not changing font

I am having a problem with lists in an epub. If I include a font-family (serif) in the css for the list <li> the font for the bulleted text will not change to the font selected on the reading device. If the <li> css does not include any font family the list acts as it should, i.e., it changes along with the rest of the text when I change the font in the device. I can remove all font family references for lists but I was just wondering why this occurs. Is it a bug of some sort? By the way, my stylesheet only has css for <h1>, <p>, and <li> and all of the text in contained in one <div> with no style attached to the div. The problem occurs in iBooks and Kindle.
spamis is offline   Reply With Quote
Old 02-27-2017, 01:17 PM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Does "font-family: serif" work anywhere else? It could very well be that the reading device doesn't match "serif" to the selected font but does something else.
Jellby is offline   Reply With Quote
Advert
Old 03-03-2017, 12:48 PM   #3
spamis
Junior Member
spamis began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Feb 2017
Device: none
Yes, serif works every place else. Just not inside the list. No matter what I change the reader font to, the font inside the list stays serif and also the same size. Go figure.
spamis is offline   Reply With Quote
Old 03-03-2017, 03:18 PM   #4
fbrzvnrnd
Fanatic
fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.
 
Posts: 554
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
Quote:
Originally Posted by spamis View Post
Yes, serif works every place else. Just not inside the list. No matter what I change the reader font to, the font inside the list stays serif and also the same size. Go figure.
can we take a look at the code?
fbrzvnrnd is offline   Reply With Quote
Reply

Tags
font-family, unordered list


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem changing font size using font size key Waylander Conversion 0 10-02-2013 03:30 PM
Can I prevent changing the fields directly in book list? erpol Calibre 8 12-01-2012 03:40 PM
Mobi unordered list style framallo Conversion 1 03-23-2011 01:22 PM
Changing Book List Order dreamvision Library Management 5 02-08-2011 08:29 PM
Changing Author List with Tweaks? AutumnDreamer Calibre 3 01-17-2011 11:40 PM


All times are GMT -4. The time now is 09:01 AM.


MobileRead.com is a privately owned, operated and funded community.