08-20-2015, 06:21 PM | #1 |
eBook FANatic
Posts: 18,301
Karma: 16071131
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Blockquote css
i hope this is the place to ask this question.
Somewhere I found this CSS defination for BLOCKQUOTE: Code:
.blockquot{ margin-bottom:1em; margin-top:1em; margin-left:3em; margin-right:0; font-size:100%; } What is wrong? Charlie |
08-20-2015, 06:30 PM | #2 | |
Resident Curmudgeon
Posts: 73,661
Karma: 127838196
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
This actually belongs in the ePub forum.
Quote:
Code:
blockquote { margin-top: 1em; margin-bottom: 1em; margin-left: 1.5em; margin-right: 1.5em } |
|
08-20-2015, 08:26 PM | #3 |
A Hairy Wizard
Posts: 3,069
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Hey Crutledge,
The styling of your blockquote isn't the problem...although I like Jon's styling, it is completely beside the point. The problem is that you are defining blockquote as a class when you add the "." in front of the name. You would have to use <blockquote class="blockquot"> for that styling to work. Simply remove the "." add the "e" and define it as: Code:
blockquote { margin-bottom:1em; margin-top:1em; margin-left:3em; margin-right:0; font-size:100%; } |
08-21-2015, 03:46 AM | #4 |
The Grand Mouse 高貴的老鼠
Posts: 71,410
Karma: 305065800
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
|
09-07-2015, 02:29 PM | #5 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jul 2015
Device: EPUB & MOBI
|
Will "margin" work for Nook, or will "padding" have to be used instead?
|
09-12-2015, 11:43 AM | #6 |
Curmudgeon
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
I'm pretty sure Nook handles margins correctly (for values other than "auto", which, like all ADE-based readers, Nook handles in a horrible way that is technically compliant with the EPUB spec, while at at the same time being thoroughly non-compliant with both the letter and the spirit of the CSS spec on which EPUB is ostensibly based).
Note, however, that other ADE-based readers collapse element margins into the page margin, which can cause problems, so for a more general solution, padding is probably a better choice. Last edited by dgatwood; 09-12-2015 at 11:47 AM. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
<blockquote> help, please | phossler | Sigil | 31 | 06-11-2013 09:28 PM |
Blockquote problem | kamanza | Conversion | 2 | 01-20-2013 12:19 PM |
blockquote grievance | Kamikuza | Amazon Kindle | 4 | 11-04-2012 07:03 PM |
blockquote over ride | dicknskip | Sigil | 3 | 03-21-2011 04:44 PM |
FBReader blockquote | minigrrl | PocketBook | 3 | 03-09-2010 08:09 PM |