Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 06-17-2019, 02:13 AM   #1
char101
Junior Member
char101 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jun 2019
Device: Samsung Tab S2
Alternating lines color in paragraph

Alternate lines color in paragraphs. To customize first decide the first color (color1), the 2nd color (color2), and the height (try different values until it fits). Then modify the values such as

Code:
repeating-linear-gradient(0deg, color1, color1 height/2, color2 height/2, height);
Code:
p { 
    line-height: 1.5 !important;
    background: repeating-linear-gradient(0deg, #1c5071, #1c5071 22px, #8e3b49 22px, #8e3b49 44px);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
Example screenshot: https://imgur.com/a/wycQSmC

Last edited by char101; 06-17-2019 at 02:16 AM. Reason: Add screenshot
char101 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I remove two blank lines after a paragraph? arast Editor 21 01-12-2018 02:46 PM
noindent first line, indent all other lines, same paragraph, possible? patrik ePub 3 02-15-2016 11:36 AM
Problem: Merge two ebooks paragraph by paragraph... akayacik80 Workshop 5 09-23-2014 09:05 AM
Alternating line shadows on book list rwmcafee Calibre 4 08-29-2014 11:00 PM
Preference: Paragraph indent or a little paragraph spacing? 1611mac General Discussions 48 11-11-2011 12:43 AM


All times are GMT -4. The time now is 07:29 AM.


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