Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 03-03-2010, 08:30 PM   #16
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,612
Karma: 145863177
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Well, with ADE there is no way to apply an align to an <hr />. It's a bug and the only way to do it so it works is to use % like 20% and then apply a margin to make it centered. Sorry, but that's the best way to do it and it does work.
JSWolf is offline   Reply With Quote
Old 03-03-2010, 08:49 PM   #17
KNotTed
Member
KNotTed is on a distinguished road
 
Posts: 19
Karma: 62
Join Date: Feb 2010
Device: PRS-505, PRS-600
Yeah, most browsers also accept <hr style="text-align: center" />, but it's not standard CSS/XHTML. Using the auto margins is the correct way, but as Jellby pointed out, ADE doesn't seem to support that.

To create a separator with asterisks that has space above and below, you could do <p style="margin: 1.0em 0;">*&nbsp;*&nbsp;*</p>, which would give you the spacing without needing <p>&nbsp;</p>

I had reasons for wanting to use a fixed width, but since it's not supported, I'm not going to worry about it too much.

Last edited by KNotTed; 03-03-2010 at 08:52 PM.
KNotTed is offline   Reply With Quote
Advert
Old 03-06-2010, 10:48 AM   #18
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,612
Karma: 145863177
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by KNotTed View Post
Yeah, most browsers also accept <hr style="text-align: center" />, but it's not standard CSS/XHTML. Using the auto margins is the correct way, but as Jellby pointed out, ADE doesn't seem to support that.

To create a separator with asterisks that has space above and below, you could do <p style="margin: 1.0em 0;">*&nbsp;*&nbsp;*</p>, which would give you the spacing without needing <p>&nbsp;</p>

I had reasons for wanting to use a fixed width, but since it's not supported, I'm not going to worry about it too much.
But if you use 1.0em, then the spacing does change if you change the size of the font. If you want a fixed amount of spacing, use px as in 20px.
JSWolf is offline   Reply With Quote
Reply

Tags
ade, css, hr tag


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tag on Add Gazerwolf Calibre 4 09-02-2010 11:54 AM
Tag Management lucidcrux Calibre 7 08-19-2010 09:55 AM
simple TAG problem alexxxm Calibre 7 02-04-2010 11:13 AM
'Keep' tag? AnemicOak Amazon Kindle 13 03-17-2009 04:19 PM


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


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