View Single Post
Old 05-27-2011, 11:31 AM   #1
barium
Connoisseur
barium can self-interpret dreams as they happen.barium can self-interpret dreams as they happen.barium can self-interpret dreams as they happen.barium can self-interpret dreams as they happen.barium can self-interpret dreams as they happen.barium can self-interpret dreams as they happen.barium can self-interpret dreams as they happen.barium can self-interpret dreams as they happen.barium can self-interpret dreams as they happen.barium can self-interpret dreams as they happen.barium can self-interpret dreams as they happen.
 
Posts: 96
Karma: 20572
Join Date: Sep 2010
Device: None
Override ePub CSS with userStyle.css?

Can I tell the PRS-350 to ignore ePubs' CSS and use the userStyle.css for all ePubs instead? That would make editing individual ePubs' CSS unnecessary.

I installed porkupan/boroda's firmware, and made some changes to userStyle.css. The changes don't seem to affect ePub formatting. Maybe I'm entering bad CSS code, but I think there may be conflicting CSS in the ePub files I'm viewing.

Can someone please tell me if the CSS code below has errors in it?

(1) eliminate margins:
Code:
p {
   margin-left: 0;
   margin-right: 0;
   margin-top: 0;
   margin-bottom: 0;
}
(2) set line height to 1.04em:

Code:
p {
line-height: 1.04em;
}
(3) eliminate blank lines between paragraphs and indent paragraphs:

Code:
p, div {
margin: 0pt;
border: 0pt;
text-indent: 1.5em;
}
Maybe adding !important to each item would do the trick?

Last edited by barium; 05-27-2011 at 04:58 PM.
barium is offline   Reply With Quote