|
|
#1 |
|
Junior Member
![]() 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;
}
Last edited by char101; 06-17-2019 at 03:16 AM. Reason: Add screenshot |
|
|
|
![]() |
|
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 03:46 PM |
| noindent first line, indent all other lines, same paragraph, possible? | patrik | ePub | 3 | 02-15-2016 12:36 PM |
| Problem: Merge two ebooks paragraph by paragraph... | akayacik80 | Workshop | 5 | 09-23-2014 10:05 AM |
| Alternating line shadows on book list | rwmcafee | Calibre | 4 | 08-30-2014 12:00 AM |
| Preference: Paragraph indent or a little paragraph spacing? | 1611mac | General Discussions | 48 | 11-11-2011 01:43 AM |