Unexplained but not suspicious

Most major news sources today are reporting the death of Sean Hoare, a man who exposed the illegal means that News International allegedly used to break stories. They all report the police claim that his death is “unexplained but not suspicious”. (e.g. the BBC).

This is scary. The top two people of the Metropolitan police force have just quit over this scandal; how can we believe a word the police say, especially when phrases like this make absolutely no sense.

The timing of Sean Hoare’s death is clearly suspicious – could it have come at a better time for News International? (Well clearly yes, last week would have been preferable, but you know what I mean). How can the police, unable to provide any explanation for the death of a man in his mid 40s in his own home, say that it’s not suspicious?

I have no idea how or why Sean Hoare is dead, but I can safely say that I am definitely suspicious…

Centering images in Tumblr

When you add an image in your tumblog one of the options to align it is “middle”. Those who know HTML will know that this align attribute has been depreciated, but the “middle” declaration is for centering vertically not horizontally. The user in question wanted just the images, not the text to be centered, and I wanted to try and achieve this without forcing them to edit classes or anything complicated. You might have thought that adding this to the CSS this would do the job:

p img {margin: 0 auto;}

but also no. Images are inline elements so they don’t understand the margin. However this will fix that:

p img {display:block;margin: 0 auto;}

Hope this helps someone!

Modern browsers means advanced users

Today I wrote this bit of code which I was quite pleased with:

input[type=submit]{display:none;}

This is targeting the sign up button on an email subscription form. Not every browser will understand this, so IE6 for example will just ignore it. For my purposes this is fine. My logic is that people on IE6 probably need the submit button anyway, whereas those who use more modern browsers which will understand this declaration will also be familiar with the fact that hitting enter will submit their form. An unusual approach to progressive enhancement maybe, but it made me happy…