I am a designer, a blogger and a Wordpress nut!

Subscribe to my Feed

Discovered: Syntax Sensitivity with IE

iesensitivity

As I was creating the tutorial for the input style I came across a CSS syntax sensitivity with IE6-IE8. It appears the following syntax will cause IE6-IE8 not to display the background image.

CSS:

#example {
     background:url(../images/someimage.jpg)no-repeat top left;
}

All looks kinda normal right? Wrong. After 30 minutes of trying to figure out why it would not display the background image, I found that there NEEDS to be a space inbetween the closing parenthesis and the start of the “n” from no. All the other browsers (Safari, Opera, Chrome) had no trouble compiling with this syntax however.

Of course this is probably my own fault for not writing up my syntax correctly but I just wanted to give a heads up and mention this in case any of you were scratching your head wondering what could be wrong…

About the Author

Roy Ho is a web site design and developer. He blogs tutorials and articles on web design and development to share with the community. He has been practicing this field for 12 years now. He is passionate and very eager to learn more!
This entry was posted in Articles, CSS + HTML and tagged , , . Bookmark the permalink.
Back to top

One Response to Discovered: Syntax Sensitivity with IE

  1. Web Designer says:

    very detailed…thanks

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*