04-01-2014, 04:16 PM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Mar 2014
Device: Nexus7
|
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. |
04-01-2014, 05:11 PM | #2 |
Grand Sorcerer
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;" /> Last edited by DiapDealer; 04-01-2014 at 05:36 PM. |
Advert | |
|
04-01-2014, 05:35 PM | #3 |
Junior Member
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. |
04-01-2014, 06:09 PM | #4 |
Guru
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.
|
|
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 |