Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 11-14-2014, 09:48 PM   #1
rosshalde
Zealot
rosshalde began at the beginning.
 
Posts: 142
Karma: 10
Join Date: Jun 2014
Device: nook
Trouble Getting Letter Formatting to Work in Sigil

I am trying to format a letter
I am using the following in the CSS:

.letter {margin-left: 3em; margin-right: 3em; }
.letter p{text-indent: 0; text-align: justify; font size: 1em; margin-top: 1.25em;}
.letter p.sign {text-align: right;}

That should be the code used in the suggested PDF by Pablo.
When looking at the code, here are my problems.
1) The signature is left aligned rather than right aligned
2) The font size is too large in the letter. I have tried adjusting from the 1em, but that seems to do nothing.
Essentially, it seems like this code is not being taken seriously and something else is overriding it. Any help would be appreciated.

Here is the code for that section in the book

<div class="letter">
<p>DEAR GEORGE,</p>

<p>Pa brought me two pretty books full of pictures. He got them in Alexandria. They have pictures of dogs and cats and tigers and elephants and ever so many things in them. Cousin bids me send you one of them. It has a picture of an elephant with a little Indian boy like Uncle Joe’s Sam on his back. Pa says if I do my tasks well he will let Uncle Joe bring me to see you. Will you ask your Ma to let you come to see me?</p>

<p class="sign">Your friend,</p>

<p class="sign">RICHARD HENRY LEE</p>
</div>
rosshalde is offline   Reply With Quote
Old 11-14-2014, 11:16 PM   #2
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,306
Karma: 78876004
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Works fine for me
Attached Files
File Type: epub PabloLetter.epub (3.2 KB, 132 views)

Last edited by PeterT; 11-14-2014 at 11:21 PM.
PeterT is offline   Reply With Quote
Old 11-15-2014, 07:11 AM   #3
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,641
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by rosshalde View Post
I am trying to format a letter
I am using the following in the CSS:

.letter {margin-left: 3em; margin-right: 3em; }
.letter p{text-indent: 0; text-align: justify; font size: 1em; margin-top: 1.25em;}
.letter p.sign {text-align: right;}

That should be the code used in the suggested PDF by Pablo.
When looking at the code, here are my problems.
1) The signature is left aligned rather than right aligned
2) The font size is too large in the letter. I have tried adjusting from the 1em, but that seems to do nothing.
Essentially, it seems like this code is not being taken seriously and something else is overriding it. Any help would be appreciated.
By chance, did you link your .css stylesheet with your .xhtml file? (right click with the mouse in the .xhtml file and select in the popup menu the "Link Stylesheets..." command)
RbnJrg is offline   Reply With Quote
Old 11-15-2014, 07:47 AM   #4
rosshalde
Zealot
rosshalde began at the beginning.
 
Posts: 142
Karma: 10
Join Date: Jun 2014
Device: nook
linked the css to the .xhtml file already
is it possible that something else would be overriding this part of the css?
rosshalde is offline   Reply With Quote
Old 11-15-2014, 09:49 AM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,909
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by rosshalde View Post
linked the css to the .xhtml file already
is it possible that something else would be overriding this part of the css?
Anything is possible

A tiny TYPO is most likely. Validate your stylesheet
theducks is offline   Reply With Quote
Old 11-16-2014, 09:28 AM   #6
GMcG
Writer
GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.
 
GMcG's Avatar
 
Posts: 101
Karma: 590630
Join Date: Mar 2011
Location: Munich, Germany
Device: none
The hyphen is missing in font size.
It should be font-size.

George
GMcG is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Picture formatting in Sigil rosshalde Sigil 3 10-27-2014 05:29 PM
Formatting in Sigil Rizphil Sigil 4 02-14-2012 02:39 AM
Trouble getting ADB to work t3l01v Nook Developer's Corner 14 01-26-2011 04:03 AM
Some trouble with Sigil carmenchu Sigil 2 01-05-2011 11:27 AM
Unutterably Silly Is Work really a four letter word? radioflyertoo Lounge 55 09-06-2009 12:03 PM


All times are GMT -4. The time now is 02:05 PM.


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