Half Pixel Lines on HiDPI Screens

on CSS

In a recent project, the design called for 0.5px borders on table rows, but not in the header. The general idea is, so add a pseudo element as our border (adjust your padding accordingly), and on HiDPI screens, scale it down to half its size, and make twice the width to fill the space. Take this markup: <table> <tr> <th>Lorem</th& ...

Hide the page you've set to show Posts in WP Admin

One of my many annoyances with WordPress is how you need to create a page, and assign that to be the Posts archive page, if you want a static home page and Posts elsewhere. This usually means having a page in WP with the editor saying something like “Don’t delete this page, it’s pretty important!”. I found this answer on SO, and adapted it to suit my needs. ...

July Update

Last June, I did a general update about me, work, houses, cars, Kodery, and more. It’s been a year, and a lot has changed, and more is going to change in the coming months too. So it feels like a good time to do another update. Me I started writing this paragraph saying that nothing much has changed. But then I realised that quote a lot has changed. My ...

Late Nights

I’ve written a few times about how I tend to work better at night. Trouble is, it’s not sustainable. What typically happens is, I get some requests in from clients to do little jobs (quick 30 minute things). I don’t like having those sit around, so I try to do them all in one evening, but they inevitably stretch over to the next day, and that puts ...

2016 In Review

For the last couple of years, I’ve done a month by month review of the year. After seeing Remy Sharp’s post, I thought that was a better format, so I’m copying the idea. Given that a few months would just be summarised as ‘work’, it feels more appropriate. Professional My little company, Cross Stroke, turns 2 this year. I will do a more detailed post like this ...