Neil Craig

Hi, I'm Neil Craig, a web-developer from Oxfordshire in the UK. If you're interested, you can read more about me on my "About The Dot Product" page. Cheers Neil Craig

Homepage: http://www.thedotproduct.org


Posts by Neil Craig

Javascript performance: document.getElementById versus document.querySelector and document.querySelectorAll

I’ve been lucky enough to be working on an internal project the last few weeks which has a known set of modern browsers as the target audience. This means i’ve been able to ignore some of the older design/development issues. I am really liking document.querySelector and document.querySelectorAll which are relatively modern (well, to me at More >

Previous sibling, the missing CSS selector?

CSS 2.1 has some really handy selectors, one of which is the adjacent (next) sibling selector which has the form: el1 + el2 { color:#f0f; } The above would apply a tasty pink(ish) text colour to el2 where it directly follows el1 in HTML element order. Excellent, that can be seriously useful. The glaring omission More >