1. Good Old Adventures

    June 10, 2008
    screenshot
    I wrote a multi-user chat environment based on classic Sierra On-Line adventure games a long time ago. It's still working, although you should consider it a retro museum just like the original games by now.

    read more »
  2. Box models

    April 8, 2008
    screenshot
    HTML elements can be either inline or block. Block elements are considered a 'box', consisting of (from inside to outside):

    • contents
    • padding
    • border
    • margin

    Setting the width of a block element such as a <div> in combination with padding or border can result in a different width overall, depending on the 'box model' you are in:

    1. The traditional box model. The width of a box is maintained, no matter the padding or border-width that you set. Give an element a width of 200 pixels, then it will stay 200 pixels.
    2. The W3C box model. The width that you specify (let's say 200 pixels) gets the border and padding added up to.

    The W3C box model is enabled when your page runs in standards mode. Read this page about standard mode and how to enable it.

    The only advantage I can see to the W3C box model is that all modern browsers render the page in a similar way. This saves you a lot of time because you don't have to redo your css for specific browsers.

    What I don't understand is the logic behind the W3C model. You just want to specify the width of a box, and it should stay that. Just like a carton box. Putting padding in a carton box doesn't make the box larger, right?

    Even moreso, the issues that you'll encounter using the W3C model is 100% width in combination with a border or padding. It'll always get you scrollbars, so you have to use inner div elements to work around it. All in all it just doesn't get pretty.
    read more »
  3. Javascript key codes

    April 7, 2008
    We all need them...
    read more »
  4. HTML Escape Characters

    April 7, 2008
    Below is the list of HTML escape characters.
    read more »
  5. hasLayout

    March 1, 2008
    Internet Explorer applies a different rendering-mechanism to an HTML element when it 'has layout'. This proprietary concept of IE will determine the elements behavior in regard to its boundaries, contents and responsiveness to DOM events.
    read more »
  6. URL Encoded Characters

    January 7, 2008
    URL encoded characters are shown below.
    read more »