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

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 09-07-2013, 07:49 PM   #1
Julius Caesar
Groupie
Julius Caesar ought to be getting tired of karma fortunes by now.Julius Caesar ought to be getting tired of karma fortunes by now.Julius Caesar ought to be getting tired of karma fortunes by now.Julius Caesar ought to be getting tired of karma fortunes by now.Julius Caesar ought to be getting tired of karma fortunes by now.Julius Caesar ought to be getting tired of karma fortunes by now.Julius Caesar ought to be getting tired of karma fortunes by now.Julius Caesar ought to be getting tired of karma fortunes by now.Julius Caesar ought to be getting tired of karma fortunes by now.Julius Caesar ought to be getting tired of karma fortunes by now.Julius Caesar ought to be getting tired of karma fortunes by now.
 
Posts: 192
Karma: 595084
Join Date: Oct 2012
Device: Kindle Paperwhite
Warning due to nested p class

Kindlegen gives me a warning "Forcefully closed opened Tag" because I have a nested p class.

<p class="chapterOpenerText">First sentence.<p class="centerImage"><img src="../Images/image00139.jpeg" alt="43.jpg"/></p>Second sentence.</p>


I could eliminate the warning by moving the image down.

<p class="chapterOpenerText">First sentence. Second sentence.</p>
<p class="centerImage"><img src="../Images/image00139.jpeg" alt="43.jpg"/></p>


But that's not what I want to do. How do I eliminate the warning without putting the image at the end? I could do this I guess:

<p class="chapterOpenerText">First sentence.</p><p class="centerImage"><img src="../Images/image00139.jpeg" alt="43.jpg"/>Second sentence.

But I don't want to do that either. Second sentence must belong to the <p class="chapterOpenerText">
Julius Caesar is offline   Reply With Quote
Old 09-08-2013, 02:40 AM   #2
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
Posts: 2,335
Karma: 3943904
Join Date: May 2008
Location: Launceston, Tasmania
Device: Kindle3, Kobo Touch, Sony PRS T3, Nexus 7, iPad mini
I suggest that you check the XHTML with the W3C validation service at

http://validator.w3.org/

I think you will find that the XHTML is invalid. And if the XHTML is invalid the ePub will be invalid, and if the ePub is invalid the KF8 will be invalid.
AlexBell is offline   Reply With Quote
Old 09-08-2013, 04:55 PM   #3
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: 3,182
Karma: 7180223
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
You could place the image between span tags...
Toxaris is offline   Reply With Quote
Old 09-11-2013, 01:00 AM   #4
pholy
Booklegger
pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.
 
pholy's Avatar
 
Posts: 1,800
Karma: 7999034
Join Date: Jun 2009
Location: Toronto, Ontario, Canada
Device: BeBook(1 & 2010), PEZ, PRS-505, Kobo BT, PRS-T1, Playbook, Kobo Touch
Can't remember where I saw it all laid out, but it is not possible to nest <p> paragraphs. You can nest <div>s, and put <p>s inside <div>s, and <span>s (of course) within <p>s. Some of the html code that Adobe published in their Alice In Wonderland demo doesn't pass validation...
pholy is offline   Reply With Quote
Old 09-11-2013, 04:35 AM   #5
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,309
Karma: 4898871
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
True, in XHTML <p> elements cannot contain other block-level elements (such as <p>, <div> or <blockquote>). But you could have a <span> with display:block
Jellby 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
PRS-650 SD Card Importance? SDHC, SDHC Class 4, Class 10 etc is it important Renji Sony Reader 11 12-03-2011 01:30 PM
Content Nested collections fartang Amazon Kindle 1 04-09-2011 01:18 PM
Content nested collections alexxx Amazon Kindle 6 06-22-2010 07:05 PM


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


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