getting Dillo web browser to look more standard
Posted: Tue 26 Jul 2011, 02:51
Dillo http://www.dillo.org/ is an extremely small (about 1MB), very fast, yet surprisingly capable web browser. Unfortunately I think many people might get turned off by its standard settings and apparent difficulty in changing the font choices. It is actually easier to fix than you might think.
Look in the .dillo folder in your root directory (or home if you don't run as root). There you will see a few plain text files that set up much of how Dillo works.
The important one for us just now is the "dillorc" file. If you read through it in an ordinary text editor you can easily change many of the settings, such as which fonts it uses.
But it doesn't let you change everything. The green background (particularly annoying to me) and the default font can't be changed there. To alter them you need to create another plain text file (in the .dillo folder) called "style.css" which consists of ordinary cascading stylesheet definitions. Here is an example:That sets the page background to white, and the default font to serif instead of sans serif (studies have shown people read serif more easily). The next three lines (set body text to black, the link color to blue, and visited link color to purple) are not actually needed as they set colors that are defaults for Dillo anyway, but I've included them to give an idea of how ordinary stylesheet commands are used here.
If you want your color and font settings to override a webpage's definitions (we've all stumbled across pages with dark blue writing on black backgrounds or yellow on white) then append "!important" to your definition. For example: That will ensure pages always have a white background and black text, and prefer serif while allowing the page to use other fonts -- useful if you have vision problems.
Now Dillo is tiny, fast, and can look more normal too. Yay!
Look in the .dillo folder in your root directory (or home if you don't run as root). There you will see a few plain text files that set up much of how Dillo works.
The important one for us just now is the "dillorc" file. If you read through it in an ordinary text editor you can easily change many of the settings, such as which fonts it uses.
But it doesn't let you change everything. The green background (particularly annoying to me) and the default font can't be changed there. To alter them you need to create another plain text file (in the .dillo folder) called "style.css" which consists of ordinary cascading stylesheet definitions. Here is an example:
Code: Select all
body {background-color: white; font-family: Serif}
body {color: black}
:link {color: blue}
:visited {color: purple}
If you want your color and font settings to override a webpage's definitions (we've all stumbled across pages with dark blue writing on black backgrounds or yellow on white) then append "!important" to your definition. For example:
Code: Select all
body {background-color: white !important; font-family: Serif; color: black !important}
Now Dillo is tiny, fast, and can look more normal too. Yay!