access css property using javascript
const element = document.querySelector('.element')
const style = getComputedStyle(element)
access css property using javascript
const element = document.querySelector('.element')
const style = getComputedStyle(element)
adding styling to element using javascript
var elem = document.querySelector('#some-element');
// Set color to purple
elem.style.color = 'purple';
// Set the background color to a light gray
elem.style.backgroundColor = '#e5e5e5';
// Set the height to 150px
elem.style.height = '150px';
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us