I have implemented the same code in both CSS and jQuery:
width: 100% -100px;
Here is how I tried to execute it:
$(document).ready(function(){
$('.left').css('width', '100%').css('width', '-=100px');
});
However, it seems like this approach encounters issues when the browser window is resized after the website has loaded. I am looking for a solution similar to the following code implementation:
.left
{
width: 80%; //100% -100px;
}
.right
{
width: 20%; //100px;
}