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

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 02-09-2011, 01:01 PM   #1
Barty
Wizard
Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.
 
Posts: 1,438
Karma: 2896627
Join Date: Sep 2010
Device: Kindle 3, PW2, iPad 3
why doesn't this CSS work?

cinverting html->mobi, I have this css

Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<HTML>
<HEAD>
	<TITLE>xxxxxxxxxxxxxxxx</TITLE>
<style TYPE="text/css">
h3.chap {font-size:1.5em; font-weight:bold; font-style:italic; page-break-before:always;}
</style>
</HEAD>
<BODY>
<h3 class="chap">Chapter 1</h3>
the font is bold but not bold and italic. also, the page-break-before is ignored. what am I doing wrong?
Barty is offline   Reply With Quote
Old 02-09-2011, 09:28 PM   #2
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
h3 headers are probably always going to look bold. The only things which aren't quite correct is using 'TYPE' instead of 'type' in <style> tag, and the final ';' isn't required. I wouldn't expect that to break anything, but maybe it did somehow.

You can use Calibre's extra css option to accomplish this as well. Add this line to the extra css option during conversion:
h3.chap {font-size:1.5em; font-weight:bold; font-style:italic; page-break-before:always}

or
h3{font-size:1.5em; font-weight:bold; font-style:italic; page-break-before:always}
ldolse is offline   Reply With Quote
 
Enthusiast
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Css Drop Caps does not work in an Epub on a Reader brewt ePub 63 09-07-2012 12:46 AM
epub CSS versus "Regular" CSS konrad ePub 4 02-18-2011 09:29 AM
css pseudo elements and adjacent combinators in extra css? ldolse Calibre 2 12-21-2010 05:09 PM
Help with CSS, anyone? rogue_ronin Workshop 36 08-14-2009 09:28 PM
Using CSS in Word to make a Drop Cap work in an Epub brewt ePub 3 01-31-2009 06:00 PM


All times are GMT -4. The time now is 11:36 AM.


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