Skip to content

Instantly share code, notes, and snippets.

@FrankFonts
Created June 14, 2022 12:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FrankFonts/7cafb990220a5e645b99659b02f3acb6 to your computer and use it in GitHub Desktop.
Save FrankFonts/7cafb990220a5e645b99659b02f3acb6 to your computer and use it in GitHub Desktop.
getPropertyValue in JS
let tabs = document.querySelector('.tab__links');
let tabsPaddingLeft = parseInt(window.getComputedStyle(tabs, null).getPropertyValue('padding-left'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment