views:

249

answers:

6

There is a funny issue with how IE is parsing/rendering my css. I have the following style defined "background-image: url(/images/leftArrow.png); DISPLAY: block; cursor: pointer;"

but for some reason, IE 7 & 8 are combining background and display to make it one property (see screenshot)

Any ideas?

alt text

+2  A: 

plz post the code here!!

This could've been a simple comment...
Franci Penov
i can't, I would have to upload a 50 meg web site. Everything relies on the rest of it.
Jeremy
+2  A: 

Its most likely a typo somewhere or a forgotten declaration termination or something. If you post the actual code we might be able to provide a concrete answer.

prodigitalson
A: 

OK Sounds funny. But how can we help you? What is the Problem with the code?

streetparade
+3  A: 

Try putting some quotes inside the url.

url("/images/leftArrow.png");

But definitely, more code would be nice.

UberNeet
added them, and lowercased the display and still displaying the same.
Jeremy
+1  A: 

i think its because you've used uppercase property names. you have the same issue with "POSITION" below. btw how do i get this firebug like addon for ie?

antpaw
That is part of jcarousel, not my code.
Jeremy
@Jeremy: Its something elsewhere as ive used jcarousel extensively and never had this problem in IE. Does your HTML validate??? Also in response to a comment attached directly to the question - is this actually causing any issue in your layout or is it simply in your live debug that its an issue? Id be willing to bet its your debug plugin.
prodigitalson
Gordon Tucker
I believe IE8 comes with a version of it as well. To open it in IE8 go to 'Tools -> Developer Tools'
Gordon Tucker
+4  A: 

It only displays that way with the developer toolbar. When you make a simple span with those css attributes, it does actually display like a block element, but my developer toolbar shows the same thing yours does in your screenshot.

It is not the uppercase name (developer toolbar actually makes the display attribute uppercase), nor is the quotes around the url the problem. You can even move display:block to the beginning of the styles and it will still show them combined in developer toolbar

Gordon Tucker
This seems to be it. There aren't any issues. I was just wondering what was making it happen.
Jeremy