If you have a browser that doesn’t support the calc
expression, it’s not hard to mimic with jQuery:
$('#yourEl').css('width', '100%').css('width', '-=100px');
It’s much easier to let jQuery handle the relative calculation than doing it yourself.
More Related Contents:
- How make my CSS responsive using Bootstrap 3.1
- How to change the element of another div by clicking and hovering on an element of a different div
- Hide/Show div on specific page with jquery
- CSS block doesn’t show click on a button
- how to force list items to go to differents rows?
- Dropdown Z-index not responding [closed]
- How to change color of SVG image using CSS (jQuery SVG image replacement)?
- Access the css “:after” selector with jQuery [duplicate]
- Downloading jQuery UI CSS from Google’s CDN
- Create a CSS rule / class with jQuery at runtime
- How do I switch my CSS stylesheet using jQuery?
- jQuery toggle CSS?
- Remove CSS from a Div using JQuery
- Correct way to animate box-shadow with jQuery
- jQuery: height()/width() and “display:none”
- How to find the highest z-index using jQuery
- Selecting only first-level elements in jquery
- Changing Body Font-Size based on Font-Family with jQuery
- Get the value of -webkit-transform of an element with jquery
- jQuery/CSS: line-height of “normal” == ?px
- How to hide/remove a DIV when empty
- Trying to make multiple background images cycle through a slideshow with CSS and JQUERY
- Why is the window.width smaller than the viewport width set in media queries
- Get *all* CSS attributes with jQuery
- jQuery CSS() for dynamically created elements
- CSS3 equivalent to jQuery slideUp and slideDown?
- How add spaces between Slick carousel item
- Fading elements in and out without changing the layout of the page
- Custom CSS to allow chrome textarea resize smaller than initial state?
- What is alternative to use after jQuery 1.9 removed .toggle(function,function)?