View Single Post
Old 08-10-2019, 03:16 AM   #1
lumpynose
Wizard
lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.
 
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
overriding someone else's css

I'm looking for feedback on my quick and dirty hack to override the css in downloaded books; removing fonts, "fixing" things like line height, justification, paragraph indentation, etc. I simply append it to the end of the existing css files. (I would use it as kobo_extra.css but the !important gizmo hoses things on the Kobo.)

Here's what I'm using so far. I'm wondering if you have other things you've needed or what your take is on this.

PHP Code:
body {
    
background-colorinitial !important;
    
font-family: unset !important;
    
line-height1.2 !important;
}

{
    
font-family: unset !important/* MS Word stuff */
    
line-height1.2 !important;
    
margin0em !important;
    
text-alignleft !important;
    
text-indent!important;
}

{
    
text-indent1.6em !important;


Last edited by lumpynose; 08-10-2019 at 12:04 PM.
lumpynose is offline   Reply With Quote