I am working on a 3 column divs. The Left and Mid columns have fixed widths (57px and 160px respectively) inside the wrapper with a width of 1005px.
the problem is the right column which SHOULD be fluid width and will cover all the remaining space. I've tried using width: (calc 100% - 217px);
but it's not working.
I have this code for your reference. I Need your help to point out what's wrong.
body {
background-color: #444;
margin: 0;
}
#wrapper {
width: 1005px;
min-height:450px;
margin: 0 auto;
}
#leftcolumn, #rightcolumn, #mid {
float: left;
min-height: 450px;
color: white;
}
#leftcolumn {
width: 57px;
background-color: #111;
}
#mid {
width: 160px;
background-color: #087;
}
#rightcolumn {
max-width: calc (100% - 217px);
background-color: #777;
display:inline-block;
}
<div id="wrapper">
<div id="leftcolumn">
Left
</div>
<div id=mid>
Mid
</div>
<div id="rightcolumn">
Right
</div>
</div>