Mieszko

Extract preview text from markdown

Articles on this website have previews- the short extracts of every article displayed on the home page. I demonstrate how these are constructed in PHP. Starting with an article $markdownBody, I compile it into an HTML…

Stick down the footer with CSS3

The header and footer take as much space as they need, and the middle element expands to fill the remaining space. The footer may have a dynamic height (unlike with absolute position + body padding-bottom), and is always at…

Static typing is better

As part of my BSc project I explore design decisions in programming languages. Static typing means that the types of variables are declared upfront and variables may not change types. The opposite is dynamic typing, where…

Set custom link underlines

There are several ways to styling the link underline hover effect in CSS. I describe two solutions and some issues associated with them. Start by disabling font rendered underlines. The next and final step is to draw a line…