|
|
#1 |
|
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
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 |
|
|
|
|
|
#2 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,655
Karma: 150249619
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
}
|
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,394
Karma: 20212733
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/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%;
}
|
|
|
|
|
|
#4 |
|
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74,404
Karma: 318076944
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
|
|
|
|
|
|
#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?
|
|
|
|
| Advert | |
|
|
|
|
#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. |
|
|
|
![]() |
|
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 |