Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a CSS-only fallback for calc() for IE8

Tags:

css

I know there is a CSS fallback for calc() for IE6-7. Likewise, I know there is a jQuery alternative.

However, is there a CSS-only fallback for calc() for IE8? If so, what is it?

like image 208
Derek Henderson Avatar asked Jun 14 '13 12:06

Derek Henderson


1 Answers

You can do like this

.content{
    padding-right: 500px;
    width: 100%;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

DEMO http://jsfiddle.net/FYB4q/

like image 136
Mo. Avatar answered Sep 30 '22 16:09

Mo.