4 ms·
I really don't understand why they say the stripes version "requires" javascript. Firstly, they're relying on javascript to do the striping effect, applying a
by Trezoid 14y ago
I really don't understand why they say the stripes version "requires" javascript.
Firstly, they're relying on javascript to do the striping effect, applying a class to even rows. If someone has javascript turned off this effect will degrade even in modern browsers.
Secondly, .stripes tbody tr:nth-of-type(2n){ background: #f6f6f6} achieves exactly the same thing in all modern browsers, and degrades just as well as the javascript version (even if javascript is off).
- JoelSutherland 14y agoThe javascript version covers IE6-8 while the CSS3 version does not.
- hkarthik 14y agoTheir webpages end in .aspx and that means they are using ASP.NET Web forms. So I wouldn't expect them to be very cutting edge in terms of modern browser practices. Sad but true.
- peacemaker 14y agoAnother thing which is sad but true is some developers feel the need to face off development tools and technologies in some sort of 'coolness' competition. When in fact, there are many more reasons behind why one might choose a particular implementation than "what is the current flavor of the month?"
- hkarthik 14y agoInteresting to see so many down votes to my comment. Even Microsoft leadership has admitted ASP.NET MVC is a better choice for public facing (non-intranet) websites. My comment was only to make the point that they were using an outdated web framework, so it's likely that their markup is probably also outdated.
- guccimane 14y agoWhat would outdated markup have to do with striping table rows? This is why you're getting downvotes, you really don't seem to have any idea what you're talking about.
- pacomerh 14y agoWhat's interesting in this set of guidelines is basically all the front-end development goodies (stylings, grids, js) not the backend. It looks very decent to me, and it was probably made by a completely different department than ASP's, So thats why the comment comes a little irrelevant in this case.
- rohansingh 14y agoThe main site uses ASP.NET MVC. It's just this style guide, which was probably never meant to be public, that seems to use old-style *.aspx files in some areas.