Version 6.4
I was researching CSS first-child selectors this morning and discovered something new to me. For years my css has avoided first-child selectors because of compatability issues but actually this selctor works just fine in IE8 and below, but, and there is always a but with IE, only if you have a doctype declared - and who doesn’t do that these days? (Oh come on!) I also found that there is a bug where a comment is considered by IE as being the first child if it’s in that positon which can ruin you day but thats unliky to happen especially if you srtip comments from your production code as you should.
A good example of the code can be found at the W3C Schools site and they have a nice demo mode you can play with - http://www.w3schools.com/cssref/tryit.asp?filename=trycss_sel_firstchild_more4
I probably did know this at some point in the past but suprised myself with it this morning - which was nice.
#somethingneweveyday.
Read more about Responsive Web Design break points...
Read more about CSS first-child and IE...
Read more about Aperture tidy up...
Read more about ExpressionEngine custom log-in page...
Read more about EEUK11 tweets from...
I recently booked a trip on the Swanage Belle, a steam hauled special from London down to Swanage on the Dorset Coast.
Read more about Swanage Belle...
Steve Jobs was many things to many people. To me he was one of a handful of people who have had a profound effect on my life.
Read more about I never met Steve Jobs...
The UK's first ExpressionEngine conference has taken place in Manchester in August 2011. I provide a report on the event itself and the surrounding activities.
Read more about EEUK11 report...
Assets is a new file management add-on for ExpressionEngine and brings a new way of managing assets in your website. I installed it and built a simple image Gallery.
Read more about Assets for ExpressionEngine...
On the 11th June we attended the Shakey Super Pull run by the Midlands Tractor Pulling Club at the Shakespeare Country Raceway.
Read more about Vintage tractors...
You are invited to comment
You are invited to post comments about this article. I will publish any comments that I think actively further the conversation and I reserve the right to filter out any comments. Comments on this site are free for general discussion but not for promoting businesses. If you wish to link to a commercial business you are welcome to do so and there is a charge of £10.00 per link per day, payable in advance, with a minimum of 30 days. Enjoy the discussion.