Answers for "css percentrage minus px"

CSS
0

css percentrage minus px

You can use calc:

height: calc(100% - 18px);
Note that some old browsers don't support the CSS3 calc() function, so implementing the vendor-specific versions of the function may be required:

/* Firefox */
height: -moz-calc(100% - 18px);
/* WebKit */
height: -webkit-calc(100% - 18px);
/* Opera */
height: -o-calc(100% - 18px);
/* Standard */
height: calc(100% - 18px);
Posted by: Guest on September-14-2021

Browse Popular Code Answers by Language