| 
			
			 | 
		#1 | 
| 
			
			
			
			 Obsessively Dedicated... 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,245 
				Karma: 35164265 
				Join Date: May 2011 
				Location: PA {back in the usa!} 
				
				
				Device: Sony PRS-T2, ADE on PC 
				
				
				 | 
	
	
	
		
		
			
			 
				
				W3C Validation Error (noob question)
			 
			
			
			I've used Flight Crew and EpubCheck many times, but this was my first time to use the W3C service.   
		
	
		
		
		
		
		
		
		
		
		
		
		
			Flight Crew and epubCheck report "No errors found" but W3C gives me this message: Error: URI : TextArea 1 Value Error : margin Parse Error [empty string] Warning: URI : TextArea 1 No declarations in the rule The CSS entry is: @page {margin: 5pt;} What have I done wrong, and how do I fix it? Thanks for any advice. Last edited by GrannyGrump; 02-20-2013 at 01:05 AM. Reason: finish the post :0  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 629 
				Karma: 1623086 
				Join Date: Jan 2012 
				
				
				
				Device: iPad, iPhone, Nook Simple Touch 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Which W3C validator?  You mean this one? 
		
	
		
		
		
		
		
		
		
		
		
		
	
	http://jigsaw.w3.org/css-validator/ or this one? http://validator.w3.org or some other validator? My best guess would be that the validator you used doesn't have proper support for @ rules, but that's just a guess.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Obsessively Dedicated... 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,245 
				Karma: 35164265 
				Join Date: May 2011 
				Location: PA {back in the usa!} 
				
				
				Device: Sony PRS-T2, ADE on PC 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I used the one available through the Sigil interface, which is the first link you provided. 
		
	
		
		
		
		
		
		
		
		
		
		
		
			Oh, and in the printout of the stylesheet, it listed that @page rule as follows: @page { } So it stripped out the existing margin rule. It does the same with any margin declaration(margin-top, margin-left, etc.) I'm baffled. Last edited by GrannyGrump; 02-20-2013 at 02:08 AM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520 
				Karma: 121692313 
				Join Date: Oct 2009 
				Location: Heemskerk, NL 
				
				
				Device: PRS-T1, Kobo Touch, Kobo Aura 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			You can safely ignore that. The online validator doesn't like the @page. I assume that it is an addition of IDPF and not official part of the CSS2 (or CSS2.1) specs.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 frumious Bandersnatch 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,570 
				Karma: 20150435 
				Join Date: Jan 2008 
				Location: Spaniard in Sweden 
				
				
				Device: Cybook Orizon, Kobo Aura 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			It's completely valid in CSS2: http://www.w3.org/TR/2008/REC-CSS2-2....html#page-box 
		
	
		
		
		
		
		
		
		
		
		
		
	
	and CSS2.1: http://www.w3.org/TR/CSS21/page.html#page-box and, of course, CSS3: http://www.w3.org/TR/css3-page/#page-box-page-rule  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Obsessively Dedicated... 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,245 
				Karma: 35164265 
				Join Date: May 2011 
				Location: PA {back in the usa!} 
				
				
				Device: Sony PRS-T2, ADE on PC 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Toxaris and Jellby, thank you for relieving my concern.  It is weird to think that the validators which are suppose to help us, are hindering instead.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 629 
				Karma: 1623086 
				Join Date: Jan 2012 
				
				
				
				Device: iPad, iPhone, Nook Simple Touch 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Don't worry.  Adobe Digital Editions doesn't like some @ rules, either.   
		
	
		
		
		
		
		
		
		
		
		
		
	
	![]() Oh, and if you haven't yet, be sure to test your EPUB in ADE. If it acts like your stylesheet failed to load, that's probably why.... I seem to recall moving all my @ rules to a separate style file except for the @font-face rules because they made ADE a sad reader.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 Obsessively Dedicated... 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,245 
				Karma: 35164265 
				Join Date: May 2011 
				Location: PA {back in the usa!} 
				
				
				Device: Sony PRS-T2, ADE on PC 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			@dgatwood, yes I do always check with ADE (v 1.8), also with my Sony or with Sony Reader for PC. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	So far I have been lucky, and my stylesheets have always loaded and worked ok (well, unless I have silly typos in them). But I will surely keep your comment about separate stylesheets in mind, if it ever comes to one that is really stubborn. Thanks.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | |
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520 
				Karma: 121692313 
				Join Date: Oct 2009 
				Location: Heemskerk, NL 
				
				
				Device: PRS-T1, Kobo Touch, Kobo Aura 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#10 | 
| 
			
			
			
			 Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 629 
				Karma: 1623086 
				Join Date: Jan 2012 
				
				
				
				Device: iPad, iPhone, Nook Simple Touch 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			@font-face works fine.  I can't remember if @page worked or not.  @media definitely made it angry.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#11 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520 
				Karma: 121692313 
				Join Date: Oct 2009 
				Location: Heemskerk, NL 
				
				
				Device: PRS-T1, Kobo Touch, Kobo Aura 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			@media I have never used before. Don't really see the need if I look at the description at W3. I can imagine that it doesn't like it, but it should just be ignored by ADE.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#12 | |
| 
			
			
			
			 Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 629 
				Karma: 1623086 
				Join Date: Jan 2012 
				
				
				
				Device: iPad, iPhone, Nook Simple Touch 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Code: 
	filter:alpha(opacity=0);  
		 | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#13 | 
| 
			
			
			
			 Resident Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,784 
				Karma: 150249619 
				Join Date: Nov 2006 
				Location: Roslindale, Massachusetts 
				
				
				Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			@page works fine with ADE. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	I actually like @page. I think it's best to set the ePub to no margins and use @page to define the margins you want. That way, it's dead easy to change the margins as wanted.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
| Thread Tools | Search this Thread | 
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Validation Error | Adjust | ePub | 3 | 07-21-2011 01:06 AM | 
| Validation error | dezignlady | ePub | 4 | 07-20-2011 03:34 AM | 
| Validation error | soparch | ePub | 2 | 04-15-2011 02:09 PM | 
| Error during validation | macdafydd | ePub | 19 | 12-01-2010 07:07 PM | 
| Validation error | rrosenwald | Calibre | 10 | 10-01-2010 12:12 PM |