4 replies [Last post]
nicholas.stephan
nicholas.stephan's picture
Offline
newbie
Last seen: 12 years 15 weeks ago
Timezone: GMT-8
Joined: 2010-01-07
Posts: 7
Points: 10

Hi,

I've been writing css for a LONG time... but still this baffles me. I have the following snippet of css

.col_left ul.left_list1 li {
	padding: 10px;
	background-image:url('../img/left_list1_bg.gif');
	width: 250px;
	background-repeat:no-repeat;
	color: #7c7972;
	cursor:pointer;
}
.col_left ul.left_list1 li:hover {
	color:#3d3938;
}
.col_left ul.left_list1 li.current { 
	color:#3d3938;
	background-image:url('../img/left_list1_bg_sel.gif');
}

and it works great everywhere. Except IE (obviously) where the .current background doesn't show up. What's weird is that the background does change, it just goes blank, as if the link were broken, but I've even navigated to /img/left_list1_bg_sel.gif, and it shows up fine... so I'm stumped.

Anybody know what's going on here?

Thanks

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 18 weeks 2 days ago
Timezone: GMT-5
Joined: 2009-10-09
Posts: 2050
Points: 2282

What happens when you take

What happens when you take out the single quotes?
background: url(../img/left_list1_bg_sel.gif);

CupidsToejam
CupidsToejam's picture
Offline
Guru
Florida
Last seen: 6 years 35 weeks ago
Florida
Timezone: GMT-4
Joined: 2008-08-15
Posts: 2637
Points: 1556

can we see it in action?

can we see it in action?

nicholas.stephan
nicholas.stephan's picture
Offline
newbie
Last seen: 12 years 15 weeks ago
Timezone: GMT-8
Joined: 2010-01-07
Posts: 7
Points: 10

Hey, I'm having the same

Hey, I'm having the same problem with IE not accepting background positioning...

I've put a little demo up at:

nicholasstephan.com/huh

where I've got a little nav with some rolls. The hover states are coming in fine on all browser but IE6 it seems. What's going on?! According to all the docs, this should be supported all the way back to IE5.5.

Thanks

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 18 weeks 2 days ago
Timezone: GMT-5
Joined: 2009-10-09
Posts: 2050
Points: 2282

Answered elsewhere.

*deleted*