Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 08-20-2015, 06:21 PM   #1
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
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%;
}
When I try to increase the margin-left: nothing changes.
What is wrong?

Charlie
crutledge is offline   Reply With Quote
Old 08-20-2015, 06:30 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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
Quote:
Originally Posted by crutledge View Post
i hope this is the place to ask this question.
This actually belongs in the ePub forum.

Quote:
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%;
}
When I try to increase the margin-left: nothing changes.
What is wrong?

Charlie
Multiple things wrong. You have a 0 right margin. You have a font size that's not part of a blockquote. Your left margin is too big and the right margin needs to match. And you have the name of the class wrong.

Code:
blockquote {
margin-top: 1em;
margin-bottom: 1em;
margin-left: 1.5em;
margin-right: 1.5em
}
Now that is correct. The left/right margins are set for using a text indent no larger than 1.2em.
JSWolf is offline   Reply With Quote
Old 08-20-2015, 08:26 PM   #3
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
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%;
}
although, FWIW, I do agree that Jon's styling is better...
Turtle91 is offline   Reply With Quote
Old 08-21-2015, 03:46 AM   #4
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,410
Karma: 305065800
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by JSWolf View Post
This actually belongs in the ePub forum.
Nonsense. CSS styles can be used in any ebook format that uses HTML/CSS in its source files. The workshop is certainly the right place.
pdurrant is offline   Reply With Quote
Old 09-07-2015, 02:29 PM   #5
ButWhy
Junior Member
ButWhy began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2015
Device: EPUB & MOBI
Will "margin" work for Nook, or will "padding" have to be used instead?
ButWhy is offline   Reply With Quote
Old 09-12-2015, 11:43 AM   #6
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
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.
dgatwood is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 07:31 AM.


MobileRead.com is a privately owned, operated and funded community.