![]() |
#1 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
text-decoration-style: dashed;
Hi all
Code:
.u { text-decoration: underline; text-decoration-style: dashed; } Code:
<p class="u">some text</p> just gives me a straight line. How do I get the dashes instead? thanks! |
![]() |
![]() |
![]() |
#2 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
With an ePub3 reader?
text-decoration-style is a CSS3 property, I don't think there's an equivalent in CSS2. You could fake it with a bottom border, but that won't work nice with line breaks. |
![]() |
![]() |
![]() |
#3 |
Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
There's nothing in the spec that precludes CSS 3 feature support; they just aren't required to be supported. Your best bet would be to file a bug report with each of the EPUB reader vendors asking them to support that CSS property. (Good luck.)
![]() |
![]() |
![]() |
![]() |
#4 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,896
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() RMSDK (at least on older devices) will barf on an invalid style (the SPEC say it should ignore those. They did...by ignoring the whole stylesheet) |
|
![]() |
![]() |
![]() |
#5 | |
Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
Quote:
However, plain-jane unknown rules are ignored correctly, in my experience, as are unknown constants, so "text-decoration-style: dashed;" should be ignored correctly by even older RMSDK versions. |
|
![]() |
![]() |
![]() |
#6 |
Hmm.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 124
Karma: 2016606
Join Date: Oct 2015
Device: Android 4.2 Google Play Reader
|
Thanks for that. That explains why none of my EPUB2 books display an underline, because I used that CSS.
|
![]() |
![]() |
![]() |
#7 |
Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
I bet if you view them in iBooks, they will. Or translate them and view them on Kindle. Both use WebKit, which (depending on version) should recognize those styles. I think.
|
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Nope, because an underline in CSS2 (and thus ePUB2) is supported and works. It is the text-decoration-style property that is CSS3. The property text-decoration itself does work.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Text still full justifying on iPad, even through style says align left | SamL | ePub | 13 | 04-20-2017 10:24 PM |
Share your favourite Holiday ornament or decoration | 5thWiggle | Lounge | 2 | 12-22-2013 12:40 PM |
Odd Paragraph Style behavior for text input | Sylver | Conversion | 8 | 02-11-2011 04:37 PM |
Changing default text style? | jyavenard | Kindle Developer's Corner | 5 | 09-29-2009 09:38 AM |
Reference Burbank, Emily: Woman as Decoration | jamh | BBeB/LRF Books | 0 | 04-18-2008 05:24 PM |