Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-01-2014, 04:16 PM   #1
TheRaven81
Junior Member
TheRaven81 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2014
Device: Nexus7
Lightbulb problem with Sigil validation (solution)

I was using this line, for my image:

<img alt="page005_image2" width="181px" height="136px" src="../Images/page005_image2.png" style="float: right; margin-left: 10px; margin-bottom: 10px;" />

Using this line in Sigil 0.7.4, I got these errors in validation:

value '136px' does not match regular expression facet '[-+]?(\d+|\d+(\.\d+)?%)'
value '181px' does not match regular expression facet '[-+]?(\d+|\d+(\.\d+)?%)'

This was fixed by moving those entries(width and height) into the style section of the line:

<img alt="page005_image2" src="../Images/page005_image2.png" style="float: right; margin-left: 10px; margin-bottom: 10px; width: 181px; height: 136px;" />

After doing this, the errors disappeared.

Hopefully this helps someone having the same issue.
TheRaven81 is offline   Reply With Quote
Old 04-01-2014, 05:11 PM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,548
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
It would work the old way, too. You just need to get rid of the 'px' after the numbers. It's unnecessary since pixels are the only thing they're allowed to be for those particular html image attributes.

Code:
<img alt="page005_image2" width="181" height="136" src="../Images/page005_image2.png" style="float: right; margin-left: 10px; margin-bottom: 10px;" />
Of course, your inline style solution will work just fine, as well.

Last edited by DiapDealer; 04-01-2014 at 05:36 PM.
DiapDealer is offline   Reply With Quote
Advert
Old 04-01-2014, 05:35 PM   #3
TheRaven81
Junior Member
TheRaven81 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2014
Device: Nexus7
Ahh i see, well that's good to know then. I will fix my entries accordingly.

Also good to see your quick response! Good to know that this forum is still alive.
TheRaven81 is offline   Reply With Quote
Old 04-01-2014, 06:09 PM   #4
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
Considering the size screen many users will be using, and that some readers don't support zooming images, you could consider whether there's any point in anything other than width="100%" for an illustration.
exaltedwombat is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sigil validation problem DrDeb Sigil 4 08-14-2012 07:31 PM
PROBLEM TOC VALIDATION ERROR IN SIGIL Ibn ePub 7 06-06-2012 03:28 AM
Problem with Sigil Validation ecojon Sigil 3 05-16-2012 04:27 AM
validation problem with Sigil gpc127 ePub 4 05-12-2012 07:08 AM


All times are GMT -4. The time now is 11:24 PM.


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