SyntaxFix
Write A Post
Hire A Developer
Questions
I think this may be another way
var width= $('#elm').width(); $('#element').css({ 'width': 'calc(100% - ' + width+ 'px)' });