View Full Version : Spot what's missing in the CSS


Adjust
09-07-2010, 09:07 PM
Hi Guys I have an epub which validates everywhere and views on everything except ADE (which reverts to unformatted text)
http://i41.photobucket.com/albums/e276/marcusstringer/Picture1-28.png

It's been suggested that it's because I have something wrong in my CSS file.
I've attached it here in the hope someone can tell me where...

As I've been staring at it for way to long, I can't see the forest for the trees so to speak.

I know it's not the cleanest CSS out there, but it does the job for me...

thanks.

pdurrant
09-08-2010, 04:22 AM
It's been suggested that it's because I have something wrong in my CSS file.
I've attached it here in the hope someone can tell me where...


I checked it with the W3C CSS validator (http://jigsaw.w3.org/css-validator/#validate_by_input+with_options), selecting the CSS 2.0 option.

The problem is right at the top of the file:

font-family: Arial (TT);and

font-family: Times New Roman (TT);
need to be changed to



font-family: "Arial (TT)";and

font-family: "Times New Roman (TT)";

Adjust
09-08-2010, 04:25 AM
ARGH...NUTS!!!!!!!!!!!!!!!

Is that all it was....I'll check when I get into work in the morning.

*bangs head against laptop screen*

Edit. Thanks Paul... I didn't know I could check my CSS code... thanks for the link

charleski
09-08-2010, 06:20 AM
I've been saying for a while now that people need to use the css validator for problems like this. If all the formatting vanishes in your ebook under ADE it's a sign of only one thing - you've made a spelling mistake in the css or left out a semi-colon. The css file needs to be perfect or ADE will throw out everything.

Adjust
09-09-2010, 09:58 PM
And for the people playing at home...

It turn out that InDesign CS3 WILL put the "" around the font names in the Template.CSS

InDesign CS5 WILL NOT put them in....

Something to look out for

pholy
09-10-2010, 09:56 AM
Amazing how some parts of Adobe forget about the standards other parts of Adobe help write! :smack: