Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 06-10-2013, 09:16 AM   #16
RbnJrg
Evangelist
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: 441
Karma: 299858
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:	33
Size:	59.4 KB
ID:	106853  
Attached Files
File Type: epub line-aside bis.epub (2.6 KB, 12 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
Enthusiast
Steadyhands began at the beginning.
 
Steadyhands's Avatar
 
Posts: 28
Karma: 10
Join Date: Dec 2011
Location: Brisbane, Oz
Device: iPad2
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
 
Enthusiast
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: 36,223
Karma: 17169472
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
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 online now   Reply With Quote
Old 06-11-2013, 03:04 PM   #19
Steadyhands
Enthusiast
Steadyhands began at the beginning.
 
Steadyhands's Avatar
 
Posts: 28
Karma: 10
Join Date: Dec 2011
Location: Brisbane, Oz
Device: iPad2
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
Evangelist
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: 441
Karma: 299858
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07:51 PM.


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