Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-19-2015, 10:49 AM   #1
Alda
Zealot
Alda began at the beginning.
 
Posts: 104
Karma: 22
Join Date: Jun 2010
Device: none
Overriding style sheet for one paragraph

Hello,

I have my stylesheet set so that each paragraph of my book is indented, but I want a handful of paragraphs NOT to be that way. I've tried going into the code and adding this tag to the paragraphs in question

Quote:
<p align="left">
but it doesn't seem to make any difference.

Can anyone help?

Thanks!
Alda is offline   Reply With Quote
Old 05-19-2015, 11:11 AM   #2
drjenkins
Addict
drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.drjenkins ought to be getting tired of karma fortunes by now.
 
Posts: 250
Karma: 1702156
Join Date: Nov 2010
Device: Kindle Voyage
It sounds as if you have already created an "indented" style in your stylesheet. Create a non-indented style in the spreadsheet and use that style for non-indented paragraphs.

Perhaps a sample of your CSS and HTML code would help us analyze the problem.
drjenkins is offline   Reply With Quote
Advert
Old 05-19-2015, 11:36 AM   #3
Arios
A curiosus lector!
Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.
 
Arios's Avatar
 
Posts: 463
Karma: 2015140
Join Date: Jun 2012
Device: Sony PRS-T1, Kobo Touch
Alda,

If you want to use a stylesheet, you can do:

<p class="noindent">text here</p> in your (x)html file. (Don't forget to link

your CSS).

In the CSS:

Code:
.noindent {
   text-indent: 0;
}
And for direct style in the (x)html something like:

<p style="text-indent: 0";>

But the use of a CSS file is better IMO.
Arios is offline   Reply With Quote
Old 05-19-2015, 02:30 PM   #4
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 Arios View Post
Alda,


In the CSS:

Code:
.noindent {
   text-indent: 0;
}
<snipped>

But the use of a CSS file is better IMO.
Start building a single work style.
IMHO a mish-mash of CSS and inline styles will get you ing later
theducks is offline   Reply With Quote
Old 05-19-2015, 05:57 PM   #5
Alda
Zealot
Alda began at the beginning.
 
Posts: 104
Karma: 22
Join Date: Jun 2010
Device: none
Thanks, all, for your responses.

I used Arios's solution and it worked like a charm.

Alda is offline   Reply With Quote
Advert
Old 05-19-2015, 08:25 PM   #6
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,309
Karma: 78876004
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
@Alda; I'd suggest taking a look at Pablo's tutorial on creating ePubs. See EPub Tutorial. There has been discussion of it here.
PeterT is offline   Reply With Quote
Old 05-20-2015, 05:51 AM   #7
Alda
Zealot
Alda began at the beginning.
 
Posts: 104
Karma: 22
Join Date: Jun 2010
Device: none
Thanks PeterT, I was thinking about that very tutorial yesterday - I couldn't remember where to find it. So thanks for the link!
Alda is offline   Reply With Quote
Old 05-20-2015, 05:56 AM   #8
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,309
Karma: 78876004
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
You're welcome!
PeterT is offline   Reply With Quote
Old 05-20-2015, 06:20 AM   #9
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
Here's my first-para style:

p.first {
margin-top:0.5em;
margin-bottom: 0.0em;
text-indent:0.0em;
text-align:justify;
}

You can copy my entire style sheet from http://notjohnkdp.blogspot.com/

Note that you call that style by beginning the para <p class="first">

My invariable resource is Google. I'll bet if you Google "CSS for first paragraph," you'll get heaps of information.
Notjohn is offline   Reply With Quote
Old 05-20-2015, 09:25 AM   #10
Arios
A curiosus lector!
Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.
 
Arios's Avatar
 
Posts: 463
Karma: 2015140
Join Date: Jun 2012
Device: Sony PRS-T1, Kobo Touch
Alda, PeterT's recommendation is very relevant. Pablo tutorial is excellent and there is an epub version you can examine to see how it works.

To parody someone else, computer coding is too important to be left in the hands of software coders (.

And as says an old African proverb: give a man a fish and you feed him for a day, but in teaching him to fish, you feed him all his life.
Arios is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I repace a Style Sheet? phossler Editor 13 12-24-2013 11:43 AM
Print style sheet ronaldl Sigil 2 10-29-2012 04:32 PM
Style Sheet editor? GraciousMe Sigil 6 06-04-2012 03:06 PM
An example file of your CSS style sheet roger64 Writer2ePub 6 04-11-2012 02:59 AM
Missing style sheet mauvais Barnes & Noble NOOK 3 12-05-2011 06:29 PM


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


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