User login



Syndicate content
Add to Google


Why does the font look so small in the code sniplets in the tutorials?

The code sniplets, and this entire site, uses "em" units for fonts. What this means is that we define the font size based on the size that you or your system has defined as the default size for each type of font. For example "1em" means that it will use your default system font size.

This is the best practice, especially for accessibility to users who need to display larger fonts. I have noticed that on Windows with Firefox the fixed width fonts on one of my systems were very small.

To change the system font size in Firefox:
Tools -> Options -> Content (tab) -> Advanced
Here you can select the font and size for your monospace fonts.
Note: In Bon Echo look under "Edit -> Preferences" instead.

If you are having a similar problem in another browser you should be able to find the option for system font size somewhere.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
Because you are not logged in, we must determine if you are a human or an Android designed to spam the internet. (Hint: All characters are lowercase)
    _   _                 
(_) | |__ ____ ____
| | | '_ \ |_ / |_ /
| | | |_) | / / / /
_/ | |_.__/ /___| /___|
|__/
Enter the code depicted in ASCII art style.