Consider the following code where we have 3 DIV elements nested inside another DIV element:
To format such elements into 3 columns, we will use the following CSS code:
border: 1px solid Black;
Click for Demo
WOFF is font format especially designed for the web. Developed in 2009, it is the future standard format that will be adapted by W3C. WOFF is basically an encoding/compression technique by which other fonts will be packed and ready for download with the web page just like images.
This way the developer can design using any font and the look-n-feel will remain the same.
Converting fonts to WOFF format
There are many tools available to convert fonts to WOFF format:
- Online Font Generator (http://www.fontsquirrel.com/fontface/generator)
- The FontForge tool, but the WOFF support is not fully added.
- The sfnt2woff command line tool available for Windows and Mac on http://people.mozilla.com/~jkew/woff/
Using WOFF fonts in Web pages
- The converted WOFF fonts can be placed in the web directory (for example under fonts directory).
- Next, the CSS needs to applied:
- This will add the font with the name myFont as a resource.
- This can now be referred to any text as:
font-family: 'myFont', 'serif';
- The font will be downloaded and then applied to the web page.
The Problem with Arabic and Urdu fonts
There are however certain problems when it comes to Arabic and Urdu fonts. The conversion results in an error. So for the time being the conversion tools are not suitable and appropriate for Arabic and Urdu fonts.