View Full Version : Options to show programming source code in ePub


pedgarcia
07-15-2010, 03:01 PM
Hi,

I'm trying to get the best way to show C Source code in ePub, to read in my Sony 505.

My first attempt was create a CSS with a specific monospace font, which worked. The problem is that it can show only 40 characters per line, using Sony's small font.

I understand that the reader controls the font size, but I'm wondering if it is possible to set a font size relative to the standard one, let's say 60% of the reader size.

Other than that, any suggestions?

Thanks

Paulo Garcia

eping
07-15-2010, 11:14 PM
You can just try 60%. like "font-size:60%;"

Or you can try one of "xx-small, x-small, small, medium, large, x-large, xx-large" , they are relative to browsers and devices, or "smaller,larger".

CrystalEYE
07-21-2010, 10:41 AM
"font-size:0.6em;" works fine as well.