Quantcast
Channel: How do I substract a header width of 100% with px in JS
Browsing latest articles
Browse All 3 View Live

Re: How do I substract a header width of 100% with px in JS

You can use the calc() function within CSS to assign values that contain calculations (such as a percentage less a static value) :DivHR.style.width = 'calc(' + (parseInt(width)) + '% - ' + 16 +...

View Article



Image may be NSFW.
Clik here to view.

How do I substract a header width of 100% with px in JS

Hi Members, I have this code to get the my specified header width using percentage whereint width = 100; DivHeader.style.width = (parseInt(width) - 1.67) + '%';However instead of subtracting 1.67% I...

View Article

Re: How do I substract a header width of 100% with px in JS

Thanks

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images