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 02-10-2011, 11:28 AM   #1
NicolasR
Addict
NicolasR has a complete set of Star Wars action figures.NicolasR has a complete set of Star Wars action figures.NicolasR has a complete set of Star Wars action figures.NicolasR has a complete set of Star Wars action figures.NicolasR has a complete set of Star Wars action figures.
 
Posts: 257
Karma: 434
Join Date: Feb 2010
Device: none
Flightcrew : is px for the height/width forbidden ?

Hi !

I’m often using pixel (px) for the length and width of my images.

But Flightcrew doesn’t seem to like it… Here is what it says :

Quote:
value '200px' does not match regular expression facet '[-+]?(\d+|\d+(\.\d+)?%)'
Do you know what it means ? Is px forbidden in the ePub specification ?

Thank you very much for the answer.
NicolasR is offline   Reply With Quote
Old 02-10-2011, 02:16 PM   #2
DMSmillie
Enquiring Mind
DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'DMSmillie understands when you whisper 'The dog barks at midnight.'
 
DMSmillie's Avatar
 
Posts: 562
Karma: 42350
Join Date: Aug 2010
Location: London, UK
Device: Kindle 3 (WiFi)
Do you mean you use "px" values for the "width" and "height" attributes in the HTML "img" tag? E.g.:

Code:
<img src="my_picture.jpg" alt="my picture" height="200px" width="100px" />
If that's what you're using, it's not an EPUB issue - it's an HTML validity issue. The "height" and "width" attributes in an "img" tag should have simple numerical values - either the number of pixels, or a percentage value. So instead of:

Code:
height="200px"
you should just have:

Code:
height="200"
DMSmillie is offline   Reply With Quote
 
Enthusiast
Old 02-11-2011, 03:51 AM   #3
NicolasR
Addict
NicolasR has a complete set of Star Wars action figures.NicolasR has a complete set of Star Wars action figures.NicolasR has a complete set of Star Wars action figures.NicolasR has a complete set of Star Wars action figures.NicolasR has a complete set of Star Wars action figures.
 
Posts: 257
Karma: 434
Join Date: Feb 2010
Device: none
Hi, Donna !

That is what I was meaning, you are right !

And thank you very much for the explanation, I understand now !

Strangely, epubcheck does validate, when the height or width in the <img> tag are in px…
NicolasR is offline   Reply With Quote
Reply

Tags
flightcrew

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FlightCrew, the epub validator Valloric ePub 71 01-02-2014 01:52 PM
FlightCrew and Norton IS bobcdy ePub 5 11-16-2010 05:28 PM
FlightCrew cross post Valloric Sigil 0 10-02-2010 05:07 PM
Max-Height theducks Sigil 6 09-02-2010 05:40 PM
WIDTH and HEIGHT in <img> tags Pablo Sigil 3 06-10-2010 05:37 PM


All times are GMT -4. The time now is 02:50 PM.


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