Monday, 15 March 2010

Css internet explorer wordpress -



Css internet explorer wordpress -

i have page, looks under every browser except ie. under ie, completly fell apart. can do, page under explorer aswell

well, allow me start out statement question broad. however, few things can called code "hacks", frowned/not-frowned upon depending on instance, error, or issue.

one of hacks, in html. it's called conditional comment. (see: this more. wikipedia keeps page pretty well). can this:

<!--[if ie]> ... code , fixes net explorer (ie) only... <![endif]-->

so can see, targeted ie. may want specify version of ie, this:

<!--[if ie 7]> ... code , fixes ie version 7 ... <![endif]-->

and can observe version , less than, or version , greater using gt/lt (greater than/less than) , gte/lte greater or equal to/less or equal this:

<!--[if lt ie 7]> ... code ie versions less 7 ... <![endif]-->

there ton of other hacks, star property hack & filtering.

as far what's considered "good practice", however, 1 time have little more experience in web developing, should not rely upon hacks , browser detection. can utilize what's called feature detection script modernizr observe features of coding using supported browser, utilize fallbacks that.

after that, how prepare errors you. if have specific need or error, then may inquire @ stackoverflow. see faq on tips on how create good, practical, answerable questions.

css wordpress internet-explorer google-chrome firefox

No comments:

Post a Comment