Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 11-23-2015, 08:10 AM   #1
JLius
Village idiot
JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.
 
JLius's Avatar
 
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!
JLius is offline   Reply With Quote
Old 11-23-2015, 08:26 AM   #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
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.
Jellby is offline   Reply With Quote
Old 11-23-2015, 10:48 AM   #3
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
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.)

dgatwood is offline   Reply With Quote
Old 11-24-2015, 12:25 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,792
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by dgatwood View Post
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.)

but there is Reality

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)
theducks is offline   Reply With Quote
Old 11-25-2015, 09:51 AM   #5
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by theducks View Post
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)
That's not precisely true. The RMSDK uses incorrect rules for skipping declarations that trigger parse errors according to CSS specifications. As a result, unknown @ rules fail spectacularly (because it doesn't parse them correctly as an @ rule), as do rules that include unknown functions (keywords followed by parenthesized expressions) as part of their value, IIRC, because it doesn't correctly use parenthesis/brace matching until the semicolon that terminates the rule, or something.

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.
dgatwood is offline   Reply With Quote
Old 12-02-2015, 04:51 PM   #6
crankypants
Hmm.
crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.
 
Posts: 124
Karma: 2016606
Join Date: Oct 2015
Device: Android 4.2 Google Play Reader
Quote:
Originally Posted by Jellby View Post
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.
Thanks for that. That explains why none of my EPUB2 books display an underline, because I used that CSS.
crankypants is offline   Reply With Quote
Old 12-02-2015, 08:23 PM   #7
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by crankypants View Post
Thanks for that. That explains why none of my EPUB2 books display an underline, because I used that CSS.
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.
dgatwood is offline   Reply With Quote
Old 12-03-2015, 03:43 AM   #8
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by crankypants View Post
Thanks for that. That explains why none of my EPUB2 books display an underline, because I used that CSS.
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.
Toxaris is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 10:54 AM.


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