/* HarperCollins Basestyle*/ /* 08/10/12 Stripped out most styling to allow for new styling from indesign */ /* 30/01/13 Removed referenced to black */ /* 12/03/13 Removed any left alignment settings (as this is the default) */ /* 09/07/14 Removed "EP_" styles as dual classes no longer used in XHTML */ /* 26/09/14 Changed all px measurements to em to meet v1.3 spec */ /* 02/10/14 Added media queries for HC image handling */ /* 22/10/14 Removed any text-align: left (as this is the default) to meet spec */ /* 26/11/14 added div.figure_cover img with padding: 0 to solve iPad splitting image */ /* 13/05/15 removed the background-color and border properties from the table and th selectors */ /* 24/07/15 Added box_out selector */ body { margin-left: 3%; margin-right: 3%; margin-top: 3%; margin-bottom: 3%; } p { text-align: justify; text-indent: 0; margin-top: 0; margin-bottom: 0; /* widow and orphan control won't do much on kindle - solves some issues on iPad */ orphans: 2; widows: 2; } sup{ font-size : 0.8em; } sub{ font-size : 0.8em; } strong{ font-weight : bold; } body.cover { margin:0; } div.cover-image { height: 100%; width: 100%; text-align: center; border:0; padding:0; } img.cover-image { max-width: 100%; height: 100%; padding:0; } /* Image handling*/ div.img { text-align: center; } img { max-width:98%; max-height:98%; padding-top: 0.625em; padding-bottom: 0.625em; } @media amzn-mobi { img { padding-top: 0.625em; padding-bottom: 0.625em; } img.img_wover600 { width:100%; border:0; padding-top: 0.625em; padding-bottom: 0.625em; } img.cover-image { height: 100%; padding:0; } } img.inline{ border : 0; padding : 0.063em; margin : 0; vertical-align:middle; } div.figure_cover{ text-align:center; } div.figure_cover img{ padding-top: 0px; padding-bottom: 0px; } div.title-page-image div.image img{ max-width: 98%; height: 98%; } /* For use with object styles */ div.image-left div.image{ /* text-align:left removed to meet HC spec, add to custom.css if force left is required */ margin-top:1em; margin-bottom:1em; } div.image-right div.image{ text-align:right; margin-top:1em; margin-bottom:1em; } div.image-centered div.image{ text-align:center; margin-top:1em; margin-bottom:1em; } div.chapter-image-head { padding-bottom : 1.875em; } h1, h2, h3, h4, h5 { margin-top: 1.250em; margin-bottom: 0; padding: 0; } /* Standard Tables */ table{ display:inline-table; margin-top:0.625em; margin-bottom:0.625em; margin-left:auto; margin-right:auto; } caption{ margin-bottom: 0.313em; margin-top: 0.625em; text-align: center; font-weight: bold; font-size: 0.8em; } th{ font-size: 0.8em; font-weight : bold; margin-left: 0.313em; padding-left: 0.188em; padding-right: 0.188em; padding-top: 0.188em; padding-bottom: 0.188em; } td { font-size: 0.8em; vertical-align:top; margin-left: 0.188em; padding-left: 0.188em; } td p { vertical-align:top; margin-top:0pt; padding-top:0pt; } /* Box Out */ .box_out{ display : block; border-style : solid; border-width : 1px; background-color : #F1F1F1; margin: 10px; padding-top: 5px; padding-bottom: 5px; }