DEV Community

Discussion on: Tell me about the worst CSS you've ever had to deal with

Collapse
 
kdezine profile image
Kunal Sindhi

Even having a years of experience sometimes I had to deal with css for cross-browser compatibility. In past month I was working in a AT&T website and require to make it compatible with IE. I used flex to make the structure flexible. But When there is need to use "min-height" to set the content at minimum height. This code really mess in Internet Explorer 11.

It was really hard time for me to find an alternate solution. Because making change for all browser due to one small thing was so hard.

So I added some CSS IE Hack to make the things works as it require. I added the following.
@media all and (-ms-high-contrast:none){}

Collapse
 
pavelloz profile image
Paweł Kowalski

ie11 lol ;)