/* BB eBooks BoilerPlate Kindle for MOBI 7 and KF8*/ /* Modify as Needed */ /* visit us @ http://bbebooksthailand.com/developers.html */ /*===Reset Code===*/ html, body, div, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, center, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; vertical-align: baseline; } /* Do Not reset ol, ul, or table for MOBI 7. It blows out all styling */ /*===GENERAL PRESENTATION===*/ /*===Body Presentation and Margins===*/ body { text-align: justify; line-height: 120%; } /*===Headings===*/ /* After page breaks, Kindle does not render margins above the content unless there is a file split in the package. */ h1 { text-indent: 0; text-align: center; margin: 100px 0 0 0; font-size: 2.0em; font-weight: bold; } h2 { text-indent: 0; text-align: center; margin: 50px 0 10px 0; font-size: 1.2em; font-weight: bold; } h3 { margin: 0px 0 65px 0; text-indent: 0; text-align: center; font-size: 1.4em; font-style: italic; } h4 { text-indent: 0; text-align: center; margin: 50px 0 15px 0; font-size: 1.2em; font-weight: bold; } h5 { text-indent: 0; text-align: left; font-size: 1.1em; font-weight: bold; } h6 { margin: 0px 0 45px 0; text-indent: 0; text-align: center; font-size: 1.4em; font-style: italic; } /*===Paragraph Elements===*/ /* Margins are usually added on the top, left, and right, but not on the bottom to prevent Kindle not collapsing white space properly */ /*firstline indent for fiction*/ p { text-indent: 0; margin: 0; text-align: justify; text-justify: inter-word; } /*block indent for non-fiction*/ /* p { text-indent: 0; margin: 1.0em 0 0 0; } */ div.image { text-indent: 0; margin: 0.6em 0 0 0; text-align: center; } span.image { text-indent: 0; margin: 0.6em 0 0 0; text-align: center; } p.author-text {} p.body-text-12-18 { text-indent: 1.25em; margin: 0; } p.body-text-12-18-dc { margin: 0; } p.body-text-12-18-ni { margin: 0; } p.dingbat { text-indent: 0; margin: 1.0em 0 0 0; text-align: center; } span.italic {font-style: italic;} p.authorname { font-size: 1.6em; text-indent: 0; margin: 0.5em 0 2.0em 0; font-weight: bold; text-align: center; } p.by { font-size: 1.4em; text-indent: 0; margin: 1.8em 0 2.0em 0; font-weight: bold; text-align: center; } p.copytitle { font-size: 1.2em; text-indent: 0; margin: 1.0em 0 0 0; font-weight: bold; text-align: center; } p.copyright { font-size: 0.9em; text-indent: 0; margin: 0.8em 0 0 0; text-align: center; } /* for centered text and element wrappers on images*/ p.centered { text-indent: 0; margin: 1.0em 0 0 0; text-align: center; } /* section Breaks (can use centered-style for non-fiction) */ p.centeredbreak { text-indent: 0; margin: 1.0em 0 1.0em 0; text-align: center; } /* First sentence in chapters following heading */ p.texttop { margin: 1.5em 0 0 0; text-indent: 0; } /* 1st level TOC */ p.toctext { margin: 0 0 0 1.5em; text-indent: 0; text-align: left; } /* 2nd level TOC */ p.toctext2 { margin: 0 0 0 2.5em; text-indent: 0; text-align: left; } /*==IMAGES==*/ /*===IN-LINE STYLES===*/ span.i { font-style: italic; } span.b { font-weight: bold; } span.u { text-decoration: underline; } span.st { text-decoration: line-through; } /*==in-line combinations==*/ /* Using something like ... may seem okay, but it causes problems on the Kindle */ span.ib { font-style: italic; font-weight: bold; } span.iu { font-style: italic; text-decoration: underline; } span.bu { font-weight: bold; text-decoration: underline; } span.ibu { font-style: italic; font-weight: bold; text-decoration: underline; } /* Superscripted Footnote Text */ .footnote { vertical-align: super; font-size: 0.75em; text-decoration: none; }