If Everything is !important…

The past couple of days, I’ve been working with .NET controls that we purchased from a company called Telerik. They are, for the most part, OK. But as soon as you try to edit them at all outside of their theme editor (which is just about the most painful piece of shisoftware to use that I’ve ever come across), the entire world falls apart on top of you.

Today, I had the fun task of making their editor size dynamically. GOOD LUCK WITH THAT. This is the specificity of the default stylesheet for the editor:

The worst CSS I've ever seen

This is among the worst (if not, the worst) CSS I’ve ever seen. If you’re keeping score at home, that’s FIVE !important’s in one element’s style. I don’t know about you, but I’d have a serious discussion with whatever developer thought that was a good idea. Instead, Telerik shipped it. *facedesk*

Next time, Telerik, fix the problem instead of hacking around it.

Update: I was able to override it. If you’re keeping track at home:

.RadForm_MetroTouch .imagePreviewer #imageMultiPage #propertiesPage {
    height: 100% !important;
}