Quantcast
Channel: Christopher Aue
Browsing latest articles
Browse All 5 View Live

Physical Size of CSS Units On Smartphones, Tablets & Co

When I was doing some responsive webdesign lately I came across the following situation:In general, I want the elements on my website to have the same physical size (say in inches or centimetres) for a...

View Article


Vertical Centering With CSS using vertical-align: middle

If I need to vertically center elements with CSS I almost always end up using display: inline-block in conjunction with vertical-align: middle. The technique is explained on CSS-Tricks. vertical-align...

View Article

All You Need To Know About Vertical-Align

Often I need to vertically align elements side by side.CSS offers some possibilities. Sometimes I solve it with float, sometimes with position: absolute, sometimes even dirty by manually adding margins...

View Article

Image may be NSFW.
Clik here to view.

em Units In Layouts: Font-Size As Global Scaling Factor

Text is the main reason why websites exist. To serve its content it is good practice to design the site around its text. This does not stop by defining the typographic style but, for instance, includes...

View Article

PHP Spy: Record Calls To Functions or Alter Their Behavior At Runtime

What do you do, if you use PHPUnit and test code that does not rely on dependency injection? When you cannot just create a test double of the object in question and inject it into the system under...

View Article

Browsing latest articles
Browse All 5 View Live