![]() |
#1 |
Connoisseur
![]() Posts: 83
Karma: 46
Join Date: May 2009
Device: Sony prs-505
|
Remove <p> tags?
I'm trying to remove <p> tags from my LIT files. I have a grasp of CSS so I have tried to nulify the carrage return with
p { margin:0px; padding:0px; } but this doesn't work. Can anyone help?, I'm hoping to do this via the CSS override in Calibre, rather than processing via a HTML editor first (e.g. find and replace ) |
![]() |
![]() |
![]() |
#2 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
What exactly do you want to remove? You may want to try adding "text-indent: 0;" to the CSS (or even "display: none;").
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Connoisseur
![]() Posts: 83
Karma: 46
Join Date: May 2009
Device: Sony prs-505
|
display:inline; does the trick, now to get calibre to recognise the paragraphs.
and to be clear, its the line breaks I'm trying to remove. I have a lot of LIT files from work that are quite old and have pages set out thus; <p>hello I'm a piece of text blah blah blah blah</p> <p> and I'm the second line of the original text</p>] Which displays on my 505 as hello I'm a piece of text blah blah blah blag and I'm the second line of the original text etc etc etc etc etc UGLY. Last edited by sideburnt; 06-11-2009 at 12:14 PM. |
![]() |
![]() |
![]() |
#4 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Then yes, it's "display: inline;" what you need. But the LIT are broken if they have each line wrapped in <p> tags.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to remove all tags at once? | al35 | Calibre | 16 | 05-30-2024 07:59 AM |
Remove all BUT certain tags? | eric11210 | Calibre | 32 | 08-10-2010 10:34 AM |
Remove Tags from all books | silverraven | Calibre | 3 | 08-03-2010 09:43 AM |
Remove spacing between paragraphs - what about div tags ? | NASCARaddicted | Calibre | 5 | 11-07-2009 05:47 AM |
RFE: Remove remove tags in bulk edit | magphil | Calibre | 0 | 08-11-2009 10:37 AM |