snakespan
snakespan

Reputation: 1211

Internet Explorer font color bug

At the moment I'm having issues with IE for font colors. In my CSS I've specified color but for some reason IE is ignoring this.

http://www.james-hayward.com/property_type/for-sale/

color is set here:

.entry-info a {
    color: #663399;
    cursor: pointer;
}

This appears to be for all versions of IE (so the usual IE6/7/8 fixes seem useless)

Upvotes: 0

Views: 2751

Answers (3)

JamieM23
JamieM23

Reputation: 561

it looks like your element nesting is a little out as although this will work in HTML5, a simple change can make it cross browser compatible and avoid any issues on that front (Support for HTML5 is extremely limited in IE7,8 and none existant in IE 6) I would recommend moving your inside your H1 and then referencing it as so:

.entry-info h1 a {
    color: #663399;
    cursor: pointer;
}

As well as this, the pasted you rule you provide is in the wrong order as your a is currently outside your .entry-info style.

Upvotes: 1

Abdul Malik
Abdul Malik

Reputation: 2642

use this .entry-info h1 { color: #663399;}

Upvotes: 1

DannyTheDev
DannyTheDev

Reputation: 4173

you have your rule the wrong way round, it should be a .entry-info.. but the way you've written it is bad in my opinion.

This might work

.entry-info h1 {
    color: #663399;
    cursor: pointer;
}

Upvotes: 1

Related Questions