M mark22 Member Oct 25, 2019 #1 I put this very basic CSS line into extra.less left: calc(5% + 33px); But xenforo outputs it as left:38% Is there anyway to tell xenoforo to output my CSS and let the browser do the calculation?
I put this very basic CSS line into extra.less left: calc(5% + 33px); But xenforo outputs it as left:38% Is there anyway to tell xenoforo to output my CSS and let the browser do the calculation?
M mark22 Member Oct 25, 2019 #2 Found the answer here: Not a bug - CSS calc() function not working properly In XF, something like: width: calc(100% - 10px); results in: width: calc(90%); Tested on Firefox and Chrome. That is to say, the "px" value is parsed as "%" when performing the calculation. xenforo.com have to do ~"" Upvote 0 Downvote
Found the answer here: Not a bug - CSS calc() function not working properly In XF, something like: width: calc(100% - 10px); results in: width: calc(90%); Tested on Firefox and Chrome. That is to say, the "px" value is parsed as "%" when performing the calculation. xenforo.com have to do ~""