My colleague and I have difficulty deciding on the best practice approach for ie6, i.e. support for the site we are building. The site is intended for an older audience, therefore it is not recommended to support these browsers.
At the same time, we are trying to introduce modern coding methods in our work so that we can practice and fully understand the possibilities. The specific area I want to talk to you guys is handling taillights for CSS3 backgrounds.
We have 2 options if we use CSS3 backgrounds and do not add extraneous wrapping tags for the background:
- Usage: after ,: before, etc. pseudo-elements to add multiple elements to elements. (this is the choice we made now)
- Use a few basic CSS3 specifications.
This gives a more elegant layout and is certainly a step in the right direction. But what about browsers that do not support these features?
Modernizr.js tells us to check for specific support, and then write fallbacks:
Modernizr.load({ test: Modernizr.geolocation, yep : 'geo.js', nope: 'geo-polyfill.js' });
However, we have not been given many recommendations regarding actual reserves for specific functions. So, in the case of something like CSS3 background, what would be an effective return strategy?
If we (for example) used jQuery to wrap extra tags (i.e. btn-container, nav-container, etc.) around navigational elements, buttons, and containers to add extra elements to add style attributes?
source share