SimonCox.com

Version 6.5

relax with a cup of green tea

CSS first-child and IE

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.

by | 12 Jan 2012 |

comments powered by Disqus

Shorticles

Caulking a website article

I wrote a little something for 12 devs -day 7

Read more about Caulking a website article...


Thoughts on IE browser upgrades

Quick post about IE browser upgrades.

Read more about Thoughts on IE browser upgrades...


Password security

Read more about Password security...


England Argentina

Read more about England Argentina...


Uploading images outside of Perch CMS default resource directory

Moving images outside of Perch default folder - how I did it...

Read more about Uploading images outside of Perch CMS default resource directory...


Responsive Web Design break points

CSS first-child and IE

Aperture tidy up

EE custom log-in page

EEUK11 tweets from

EEcms tip - transfering site to a new server

Card handling fee?

EEcms tip - looping urls

End July image roll

Content strategies of pages with no content

ExpressionEngine Assets - changing images

When Google+ gets on ifthisthenthat

Big take away from Insites Tour Brighton

Ethan Marcotte’s Responsive Web Design

Actimel - excellent example of bad marketing practice

8 Faces Magazine

Preventing deep linking

Hyphens, dashes, endashes and emdashes v underscores

Main articles

How to solve the Apple mail Unable to verify account name or password issue

How to solve the Apple mail Unable to verify account name or password issue, Changed your keychain password recently? It may have wiped your passwords in Internet accounts

Have you changed your keychain password recently and then had issues with Apple mail and other services such as linkedin, Google, Flickr, Vimeo and others? I have exactly this and eventually solved it with a quick fix that will save you a lot of time.

Read more about How to solve the Apple mail Unable to verify account name or password issue...


Using a CDN to help migrate your sites hosting

Using a CDN to help migrate your sites hosting, without having that DNS propagation wait

Moving a site to new hosting can be fraught with issues. Here is one technique that I find useful when moving to a website to a new hosting server.

Read more about Using a CDN to help migrate your sites hosting...


Halle Marchandise en bois

Halle Marchandise en bois, French meter gauge goods shed

A plaster model kit of a classic French wooden goods shed.

Read more about Halle Marchandise en bois...


Small Run Batch Deutz OO9 kit - part 2

Small Run Batch Deutz OO9 kit - part 2, Body work for the SRB001 Freelance DEUTZ Style 0-4-0DM

Completion of the SRB001 Freelance DEUTZ Style 0-4-0DM chassis including the running gear and motor withthe body work following.

Read more about Small Run Batch Deutz OO9 kit - part 2...


Small Run Batch Deutz OO9 kit

Small Run Batch Deutz OO9 kit, SRB001 Freelance DEUTZ Style 0-4-0DM

Stuart Brewer is a fellow GDNGRS member and is one of the most acomplished model makers I know - this is his first kit and my attempts at building it.

Read more about Small Run Batch Deutz OO9 kit...