Mark Grealish

Cats and wizardry.



Center and size an absolutely positioned box with percentages only

I feel like I have been screwed over with lightheadedness lately, so let’s see if I can churn out something useful. There are times when you have to absolutely position a child element, and there are subset of those cases where the child has to be positioned absolutely in the center of the parent. The […]

I missed January

Well fuck, I missed a whole month. Long story short, I’ve been busy in real life and my iPhone is in pieces in my desk drawer. Back in August or September I dropped my phone into the toilet after a night drinking with Alanna and Casey. The dock module was fried and battery capacity seemed […]

Operation: Break the Site

The website’s appearance has bugged me badly over the past six months. I threw it together in my first fumblings with WordPress, and the sheer amount of things I have learned since on the topics of HTMl, CSS, PHP, UX and usability, Sass and JavaScript has made the site an ever-sharper embarrassment. Frankly, it looks […]

Sass mixins for placeholder styles

It took me like twenty minutes to figure the correct way to do this, so it’s worth a mention. I need to change the colour of unfilled or incomplete inputs in a form, including the placeholder style. Different browsers each have their own ways of handling placeholder styles. @mixin placeholder_style() { &::-webkit-input-placeholder { @content; } […]

Here is no water but only rock

There’s been a lot of uncertainty about where life will take me, but that’s been understandable. I mean, if you look back in to 2013 and 2014 I was mostly a fucked-up mess of a man who could barely get out of bed in the morning let alone say “this is where I want to […]

Operation: Break the Site II

It’s going pretty well; I’ve covered most of my initial goals, and now I am taking further steps to pad out content across the site by adding a list of related posts below each article: $related_posts = new WP_Query(array( 'post_status' => 'publish', 'cat' => $category[0]->cat_ID, 'posts_per_page' => 20, 'orderby' => 'rand', 'order' => 'DESC', 'post__not_in' […]

Garrett: Literally Romeo