![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Nov 2013
Device: kindle 4
|
Remove border css
Hello! I used to remove border css when convert from fb2 to azw3. I only had to put "border" in look&feel/extra css. But this doesn't work in the last version 1.12.
I would like to know how I can do that now. Thanks in advance. Sorry for my bad English. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,249
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
I think you would have more success putting border in Look&Feel - Filter Style info - Other CSS properties if you are trying to remove css. The Extra CSS option adds CSS rather than removes it.
|
![]() |
![]() |
![]() |
#3 | |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Nov 2013
Device: kindle 4
|
Quote:
I think it must be related with this: "EPUB/AZW3 Output: Use shorthand forms for margin, padding and border CSS properties, where possible", in 1.4 version, but I don't know what and how I have to do. In any case, I can downgrade to 1.2 version. In this version it works fine. Thanks. |
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,198
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You need to put in all the possible border properties, namely:
border-top-color border-top-style border-top-width and so on for bottom, right, and left |
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Nov 2013
Device: kindle 4
|
Thanks a lot, it works fine now.
But I have a question: I think it was easier to do this before 1.4 version, I only put "border" in "Other css properties" and borders were removed. Now I have to put top, bottom, right, left, and color, style, width. Why is more difficult now? |
![]() |
![]() |
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,198
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Previously it only worked because the book you were converting happened to use the shorthand form, if it did not it would not have worked. Now all css shorthand properties are expanded internally during conversion, this is necessary to avoid a few CSS cascading bugs.
Therefore, it is now necessary to specify the full properties to be removed explicitly. I might add a feature in the next release to automatically expand shorthand css properties specified in the filter css box, so that one does not have to enter them manually. |
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Nov 2013
Device: kindle 4
|
Thanks a lot. Calibre's improving every day. Please, don't forget fb2 format, wich is used a lot here, in Spain.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Override ePub CSS with userStyle.css? | barium | Sony Reader Dev Corner | 11 | 07-16-2011 03:25 PM |
css pseudo elements and adjacent combinators in extra css? | ldolse | Calibre | 2 | 12-21-2010 05:09 PM |
How To Remove White Border From Epub Cover | crestfalleen | Calibre | 13 | 05-25-2010 12:21 PM |
RFE: Remove remove tags in bulk edit | magphil | Calibre | 0 | 08-11-2009 10:37 AM |
Remove white border (batch) OS X | etherspin | Workshop | 0 | 03-14-2009 08:55 PM |