Jump to content

Css Size Property Doesn't Validate


sleeplessindc

Recommended Posts

There are errors in the code for Example 1 on http://www.w3schools.com/css/pr_print_size.asp. In Example 1 it has@page { size 8.5in 11in; margin: 2cm } There should be a colon after "size" and a semicolon after "2cm".In my print.css file, I have tried both examples given on this page (with the code errors and with the code errors fixed) but both examples are not validated by the W3C validator. It says the size property doesn't exist. I get "Property size doesn't exist : auto" and "Property size doesn't exist : 8.5in 11in" http://qa-dev.w3.org:8001/css-validator/validator?uri=http%3A%2F%2Fwww.stcwdc.org%2Findex.shtml&profile=css21Is the information about the size property for @page deprecated in CSS level 2.1 and 3?My file is at http://www.stcwdc.org/stcwdc_print.css(There is another error in this print file where there is an extra closing curly bracket. Don't know how I got that but without that extra bracket, the print this page doesn't format correctly.) :)

Link to comment
Share on other sites

When in doubt, look at the official specification. http://www.w3.org/TR/CSS21/page.html#page-box It seems that in CSS 2.1, the size property has been eliminated from the @page rule
Thanks for finding that. I'll delete it from my code. I hadn't looked for "page-box" so I didn't find that spec.The W3Schools page about the CSS size Property for @page will need to be updated.
Link to comment
Share on other sites

The admins will never see that in this forum. A short notice in the suggestions column *might* get their attention.
I've been looking for how to let them know about this erro. Where is the suggestions column? I've searched the W3Schools Forum and the w3schools.com site and can't find a feedback form or e-mail address for contacting them.
Link to comment
Share on other sites

I've been looking for how to let them know about this erro. Where is the suggestions column? I've searched the W3Schools Forum and the w3schools.com site and can't find a feedback form or e-mail address for contacting them.
Ah, I finally found a contact e-mail address. It is hidden under "Warranties" in the About Copyright page on w3schools.com
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...