![]() |
#1 |
Zealot
![]() ![]() Posts: 146
Karma: 194
Join Date: Jun 2010
Location: Melbourne
Device: iPad
|
Add space between <br> tag
Hi there. I would like to add some space above some paragraphs in an ebook that I have converted to epub.
In the attachment Screen1, there is space above the paragraphs: Two months before ... We know Jay .. I would like the same space above the paragraphs that follow: Works for Hamlyn ... Professionally ... etc. Screen2 shows the tags via the Inspect feature of calibre. Screen3 shows the entry for calibre8 in the css file. It is obviously the fact that there is a <br> tag in there and not a <p> tag that prevents me from adding the space as I normally would by changing the margin-top setting for calibre8. Is it possible to add space above the <br class="calibre3"> style? I tried entering: br{ line-height: 0.5em; } in the css file but it doesn't seem to work. Any ideas? Thanks in advance |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,897
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Line-height is between ALL LINES inside a paragraph (<br /> is not a line
![]() <p>The first phrase <br />The second phrase</p> Margin-bottom, Margin-top are between paragraphs (and my preferred way for most cases) <p>The first phrase </p> <p>The second phrase</p> |
![]() |
![]() |
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
I also avoid using <br> for this type of formatting. I use a style for the first paragraph following a section break:
<p>stuff</p> <p>and</p> <p class="section">more</p> <p>stuff</p> with these styles: p {margin-top: 0em} .section {margin-top: 1em} yields: stuff
and more stuff |
![]() |
![]() |
![]() |
#4 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 532
Karma: 3293888
Join Date: Oct 2011
Location: Virginia
Device: Nook Simple Touch
|
I can't figure out why the op wants the paragraphs and their associated dialog formatted that way so I feel I must be missing something important <br class="confused" />
there's not enough in attach1 to see the overall style being used here, but what is presented looks jumbled. 1) Space between paragraphs, or not? 2) Indent paragraphs or not. If 1 is true then 2 can be true of false. If 1 is false then 2 should certainly be true. The br tag is an awkward (and certainly counter-semantically) why of achieving either. Last edited by Rob Lister; 02-29-2012 at 10:37 AM. |
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,353
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Aren't extraneous <br /> tags often ignored by ADE anyway?
|
![]() |
![]() |
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
|
![]() |
![]() |
![]() |
#7 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,897
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
There is some mis-information here.
A single <br /> works just fine with ADE on my PEz A <h3 class="is_one _centered">Chapter 1 <br />The Beginning</h3> Also works with both lines. Note: I see the H3 tag have an indent, then centered. The second line looks like crap. |
![]() |
![]() |
![]() |
#8 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,353
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
![]() Yes, ADE will honor a <br /> tag and start a new line, but a second one—in an attempt to create a "blank" line—will be ignored. I just meant that using the <br /> tag to do anything other breaking to a new line is probably not going to have the desired result in ADE. There needs to be something to "break," first and foremost. ![]() |
|
![]() |
![]() |
![]() |
#9 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,897
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I don't use naked <p>'s anywhere I care about
![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
add new tag field | Mister_R | Library Management | 2 | 08-02-2011 12:13 PM |
How to add a tag? | TdeV | Calibre | 10 | 06-20-2011 03:11 PM |
Add a space after periods | prhammer | Conversion | 3 | 05-13-2011 06:51 AM |
Tag on Add | Gazerwolf | Calibre | 4 | 09-02-2010 11:54 AM |
Add a LaTeX Tag | Nathan Campos | Feedback | 0 | 12-31-2009 02:47 PM |