Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 11-26-2014, 10:26 PM   #16
DomesticExtremis
Addict
DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.
 
DomesticExtremis's Avatar
 
Posts: 243
Karma: 359054
Join Date: Nov 2012
Device: default
Quote:
Originally Posted by rosshalde View Post

will the <p> inside the <div class="stanza"> be treated as the normal<p> or will they be treated as following the <div>. It appears that they follow the <p>. What am I missing here to make the <p> inside the <div class="stanza"> behave differently?
No - if you want that to happen, you need to revert to your original code and fix the error I pointed out in my previous post.
DomesticExtremis is offline   Reply With Quote
Old 11-26-2014, 10:29 PM   #17
rosshalde
Zealot
rosshalde began at the beginning.
 
Posts: 142
Karma: 10
Join Date: Jun 2014
Device: nook
with the fixed code that you gave.
stanza {
margin-top: 1em;
margin-right: 0;
margin-bottom: 1em;
margin-left: 2em;
text-align: left;
text-indent: -2em;
}
will that give me the overflow line slightly indented as in poetry?
I thought that the trick was having that padding in there as well.

I just closed the one brace as suggested above and that also helped.

What I need to learn is when difference codes in the CSS override one another.

I appreciate so much help on here. I have been plugging away trying to learn how to do this, and some things are starting to make logical sense.
rosshalde is offline   Reply With Quote
Advert
Old 11-27-2014, 02:01 AM   #18
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by rosshalde View Post
What I need to learn is when difference codes in the CSS override one another.
In general that would be cascading, it works down into the child tags. So, if you for example:
Code:
<div  class="dummy">Dummy text</div>
<div class="dummy"><p>dummy text 2</p></div>
Let's say you have a simple stylesheet like this:
Code:
div.dummy {font-style: italic;}
p {font-style-normal;}
In this case 'Dummy text' would be italic, but 'dummy text 2' not. The attribute is overwritten. In order to overwrite a certain attribute, it must be addressed. In this example I specifically have given the p-tag the attribute that it must not be italic. Normally a p-tag is never italic unless specified otherwise, so it seems redundant. However, since it would need to overwrite the font-style of the div-tag, I need to specify it.

I hope this makes it clear. This is a simple example, but it can become complex quite fast. That is why an Inspector is useful, to see where the value of the attributes are coming from. Both Sigil and Calibre editor have these by default.
Toxaris is offline   Reply With Quote
Old 11-28-2014, 06:01 AM   #19
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
Add Caption to Image

You can use either Photoshop (expensive) or GIMP (free).

1. Load image (image01.png)
2. Cleanup (image02.png)
3. Add whitespace at bottom of image (image03.png)
4. insert and locate Caption in whitespace. (image04.png)
5. Crop image to final display (image05.png)
6. Add decorations as desired (image06.png)
7. Save as png

The hardest part is getting used to the tool terminology.
Attached Thumbnails
Click image for larger version

Name:	image01.png
Views:	177
Size:	119.7 KB
ID:	131689   Click image for larger version

Name:	image02.png
Views:	174
Size:	115.7 KB
ID:	131690   Click image for larger version

Name:	image03.png
Views:	176
Size:	116.3 KB
ID:	131691   Click image for larger version

Name:	image04.png
Views:	176
Size:	68.6 KB
ID:	131692   Click image for larger version

Name:	image05.png
Views:	175
Size:	68.4 KB
ID:	131693   Click image for larger version

Name:	image06.png
Views:	173
Size:	68.1 KB
ID:	131694  

Last edited by crutledge; 11-28-2014 at 06:14 AM.
crutledge is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
keeping image and caption together whbenson ePub 0 08-20-2013 06:19 PM
How to be sure a full page image+ caption is not split between 2 pages? silviolorusso ePub 9 07-12-2013 08:24 PM
Caption, distance from image GraciousMe Sigil 10 10-30-2012 11:12 AM
L shape image with caption? LostSock ePub 5 09-08-2011 07:24 PM
Center Image and Caption SamL ePub 11 08-12-2011 09:27 AM


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


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