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

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 11-22-2010, 03:14 PM   #1
Ephraim
Enthusiast
Ephraim began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Nov 2010
Device: ibooks
Indents! Please Help!

I do not want my first line in the paragraph to have indents because my images above line up with it and then are offset when i sync it into my ibooks. I do not know how to change it. Please someone explain it to me.
Ephraim is offline   Reply With Quote
Old 11-22-2010, 06:58 PM   #2
theducks
Grand Sorcerer
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: 15,235
Karma: 6020307
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Ephraim View Post
I do not want my first line in the paragraph to have indents because my images above line up with it and then are offset when i sync it into my ibooks. I do not know how to change it. Please someone explain it to me.
Find the line in the CSS for the Class assigned to the paragraph (code view) the says:
text-indent: <some_value_there> and change the value to a simple Zero. Leave the trailing semi-colon if there is one.
Save
theducks is offline   Reply With Quote
 
Advertisement
Old 11-22-2010, 07:59 PM   #3
Ephraim
Enthusiast
Ephraim began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Nov 2010
Device: ibooks
Indents

I just looked and I honestly didnt see anything with text indent. Any other suggestion? In the yellow code or other code?
Ephraim is offline   Reply With Quote
Old 11-22-2010, 08:32 PM   #4
theducks
Grand Sorcerer
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: 15,235
Karma: 6020307
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Ephraim View Post
I just looked and I honestly didnt see anything with text indent. Any other suggestion? In the yellow code or other code?
The yellow (gold)code is in the book. Look in the Styles portion in the book browser for the style sheet(s)
The clue to where in the style sheet will be from looking at the paragraph in question (you might not want to remove ALL indents in the book.
Code:
<p class="calibre1">
in this case, you would find "calibre1" in the style sheet and set the text-indent: to 0 (or possibly add that line if indents were done at a more outer layer.)
theducks is offline   Reply With Quote
Old 11-23-2010, 12:11 PM   #5
Ephraim
Enthusiast
Ephraim began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Nov 2010
Device: ibooks
Indents

Thank you. I think I got it figured out. The reason I have to remove all indents was because all my chapter heading and images were lining up with the first line in the paragraph that of course had indents. Then when I sync to ibooks the text is right but the images are offset. I would had preferred to not have to remove the indents of the text but I didn't know how to fix the images not being centered. Is there a work around to have both the images and chapter headings centered on my ebook reader and still have indents in the text? Your help has been appreciated.
Ephraim is offline   Reply With Quote
Old 11-23-2010, 12:25 PM   #6
theducks
Grand Sorcerer
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: 15,235
Karma: 6020307
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Ephraim View Post
Thank you. I think I got it figured out. The reason I have to remove all indents was because all my chapter heading and images were lining up with the first line in the paragraph that of course had indents. Then when I sync to ibooks the text is right but the images are offset. I would had preferred to not have to remove the indents of the text but I didn't know how to fix the images not being centered. Is there a work around to have both the images and chapter headings centered on my ebook reader and still have indents in the text? Your help has been appreciated.
Make a NEW class (name) in the CSS
Code:
.noindent {text-indent: 0}
Now use this WITH the existing class to override the indent by placing it after
Code:
<p class="calibre1 noindent">
see how they are now both inside the quotes separated by a space?
theducks is offline   Reply With Quote
Old 11-23-2010, 03:00 PM   #7
Ephraim
Enthusiast
Ephraim began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Nov 2010
Device: ibooks
I'm sorry I'm new to all this. But I learn quick. Where do I put the first code ".noindent {text-indent: 0}"
Ephraim is offline   Reply With Quote
Old 11-23-2010, 03:45 PM   #8
theducks
Grand Sorcerer
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: 15,235
Karma: 6020307
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Ephraim View Post
I'm sorry I'm new to all this. But I learn quick. Where do I put the first code ".noindent {text-indent: 0}"

In the CSS for the EPUB. (change the name of the new one if there is already one that does something more/different.)

put the original indent back to what it was.

Then modify the tags that you DO NOT want indented.
The Obey the LAST order given rule applies her. So the first says Indent and other stuff, BUT you also have a style that says "No indent", which overrides the previous order (to indent), but keeps all the rest.
theducks is offline   Reply With Quote
Old 11-23-2010, 04:43 PM   #9
Ephraim
Enthusiast
Ephraim began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Nov 2010
Device: ibooks
Ok....I'm starting fresh. I just reopened my epub with the indents already in the code. The images and chapter headings are already inserted but are of course indented with the text. Where do i go from here?
Ephraim is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
First paragraph line indents jhempel24 Sigil 10 11-23-2010 08:26 PM
Margins and Indents sloecoach Calibre 2 09-26-2010 05:41 PM
Display of Hanging Indents crutledge Workshop 1 09-25-2009 07:09 PM
Hanging indents? llasram Kindle Formats 11 01-05-2009 11:59 AM
Paragraph indents from command line JSWolf Calibre 4 11-06-2008 09:41 PM


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


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