Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 06-10-2013, 09:16 AM   #16
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by RbnJrg View Post
There is another method to achieve what you want that I think it could work in ADE too; if later I have a bit of free time, I will post it.
Here is the another method; this one works also in ADE and should be the definitive solution for your issue. In your css stylesheet, write:

Code:
h2 {
  margin: 0;
}

.line_aside {
  display: block;
  height: 2em;
  border-bottom: 3px solid black;
  margin: -0.5em 0 1em;
  background: white;
}

.text {
  float:left;
  font-weight: bold;
  padding: 0 16px 0 5px;
  margin: 1em 0 0 -0.2em;
  font-size: 1.2em;
  background: white !important;
}

p {
  font-size: 1em;
  margin: 0;
  text-align: justify;
  text-indent: 0;
}

p + p {
  text-indent: 1em;
}
And in your .html file write:

Code:
<h2 class="line_aside"><span class="text">BLA BLA BLA BLA</span></h2>

<p> ...something... </p>
Below I attach a screenshot of ADE and the respective epub.

Regards
Rubén
Attached Thumbnails
Click image for larger version

Name:	line-aside.jpg
Views:	153
Size:	59.4 KB
ID:	106853  
Attached Files
File Type: epub line-aside bis.epub (2.6 KB, 111 views)

Last edited by RbnJrg; 06-10-2013 at 09:24 AM.
RbnJrg is offline   Reply With Quote
Old 06-10-2013, 02:37 PM   #17
Steadyhands
Connoisseur
Steadyhands began at the beginning.
 
Steadyhands's Avatar
 
Posts: 57
Karma: 10
Join Date: Dec 2011
Device: Samsung Tablet
Quote:
Originally Posted by RbnJrg View Post
Here is the another method; this one works also in ADE and should be the definitive solution for your issue. In your css stylesheet, write:
Thanks very much Rubén. I've tried both additional methods on the PC with success. Yet to reload a file to the iPad, will report back here later.
Steadyhands is offline   Reply With Quote
Old 06-10-2013, 04:14 PM   #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: 73,957
Karma: 128903250
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 Steadyhands View Post
Thanks very much Rubén. I've tried both additional methods on the PC with success. Yet to reload a file to the iPad, will report back here later.
Please don't use iPad when you mean a specific app.
JSWolf is offline   Reply With Quote
Old 06-11-2013, 03:04 PM   #19
Steadyhands
Connoisseur
Steadyhands began at the beginning.
 
Steadyhands's Avatar
 
Posts: 57
Karma: 10
Join Date: Dec 2011
Device: Samsung Tablet
Either of the last two methods work in iBooks.

Thanks again Rubén
Steadyhands is offline   Reply With Quote
Old 06-11-2013, 03:45 PM   #20
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Steadyhands View Post
Either of the last two methods work in iBooks.

Thanks again Rubén
You are welcome
RbnJrg is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Images always show on new page, even if there's only 1 line of text on previous pg SarahMB ePub 13 01-19-2013 04:37 PM
Since 1.9.10, text slightly cut off on very bottom line danskmacabre Kobo Reader 33 01-13-2012 05:25 AM
Two columns of text, line down middle? chingu ePub 2 09-04-2011 06:12 PM
Text file formatting - line feeds and spaces Fallingwater Workshop 6 07-04-2011 02:42 PM
changing text line-height in css wjcroft EPUBReader 0 12-15-2010 03:13 PM


All times are GMT -4. The time now is 05:37 PM.


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