3
I’m having trouble with Safari 5.1, css width: Calc(100% - 350px); it doesn’t work properly in safari, follow the code and jsfiddle:
<div id="menu"></div>
<div id="conteudo2"></div>
#conteudo2 {
width: -webkit-calc(100% - 150px);
width: -moz-calc(100% - 150px);
width: calc(100% - 150px);
background-color: #333333;
float: left;
height: 920px;
margin-top: -10px;
}
#menu {
width: 150px;
float: left;
height: 900px;
background-color: #f2f2f2;
}
Other browsers are working properly!!
And what is the best solution to this problem ?
– Alan PS
@Alanps Do these calculations with javascript. I’ll edit the answer and show you how to do it.
– Edgar Muniz Berlinck