|
|
#1 | |
|
Connoisseur
![]() Posts: 90
Karma: 10
Join Date: Jan 2011
Device: none
|
CSS validation error
Quote:
|
|
|
|
|
|
|
#2 | |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,725
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Quote:
margin-left: ; is not If you don't want/need to specify any, remove the words (or comment out)
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Connoisseur
![]() Posts: 90
Karma: 10
Join Date: Jan 2011
Device: none
|
Apparently I wasn't clear about the contents of the Calibre-generated page_styles.css:
Code:
@page {
margin-bottom:5pt;
margin-top:5pt
}
|
|
|
|
|
|
#4 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,505
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#5 |
|
Connoisseur
![]() Posts: 90
Karma: 10
Join Date: Jan 2011
Device: none
|
According to everything I read on www.w3.org, the above Calibre .css should be all right. Could it be a bug in the validation service?
page_styles.css works OK in ADE. |
|
|
|
|
|
#6 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 555
Karma: 422221
Join Date: Jul 2010
Location: UK
Device: Sony PRS-300 & Kindle PW
|
Which validator are you using? I use http://validator.idpf.org/ and this does not report any errors with calibre's page_styles.css.
|
|
|
|
|
|
#7 |
|
Connoisseur
![]() Posts: 90
Karma: 10
Join Date: Jan 2011
Device: none
|
I use the CSS validation tool in Sigil, which redirects to W3C validation service.
|
|
|
|
|
|
#8 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 555
Karma: 422221
Join Date: Jul 2010
Location: UK
Device: Sony PRS-300 & Kindle PW
|
When I submit page_styles.css to W3C I get a different message to the one you get. It says that margin-top and margin-bottom do not exist in CSS3 (but do in CSS1 and CSS2). You can use the "More Options" button in the W3C validator to select CSS2 instead.
Can Sigil be configured to use a different validator? The IDPF tool is specifically for ePub 2 and 3 documents whereas the W3C tool is for CSS in general. Last edited by Agama; 12-06-2012 at 04:31 PM. |
|
|
|
|
|
#9 |
|
Connoisseur
![]() Posts: 90
Karma: 10
Join Date: Jan 2011
Device: none
|
But if you check the CSS 3 reference page on W3schools
http://www.w3schools.com/cssref/default.asp, you'll find all the usual margin properties. Could it be that CSS 3 doesn't allow margins for paged media? Very strange. |
|
|
|
|
|
#10 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,505
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
CSS 3 has a completely different specification for page margins, see the link I posted before.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#11 | |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 555
Karma: 422221
Join Date: Jul 2010
Location: UK
Device: Sony PRS-300 & Kindle PW
|
Agreed, the CSS3 margin spec is quite different.
@kamanza: CSS3 does support paged media and @page, but regarding ePub 2 & 3, the IDPF documentation says: Quote:
Conclusion: Calibre's style sheets are fully compliant with the ePub specification. Last edited by Agama; 12-08-2012 at 09:27 AM. |
|
|
|
|
|
|
#12 |
|
Connoisseur
![]() Posts: 90
Karma: 10
Join Date: Jan 2011
Device: none
|
Thanks for the explanation. Seems, the question has to be transferred to the Sigil forum:
the wrong CSS validator. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Validation Error | Adjust | ePub | 3 | 07-21-2011 12:06 AM |
| Validation error | dezignlady | ePub | 4 | 07-20-2011 02:34 AM |
| Question about validation and items referenced in css | ldolse | Sigil | 9 | 02-02-2011 04:17 AM |
| Error during validation | macdafydd | ePub | 19 | 12-01-2010 06:07 PM |
| Validation error | rrosenwald | Calibre | 10 | 10-01-2010 11:12 AM |