1.0.0 • Published 6 years ago
basichtmlstyled v1.0.0
Html Basic Style
Add css styles with javascript plugin.
how to install
npm i basicHtmlStyled --save
function basicHtmlStyled(classNameSelect) {
const header = document.getElementById(classNameSelect);
if (classNameSelect.id === ''){
classNameSelect.id = '';
}else{
classNameSelect.id = 'header';
}
if (header.classList.contains(classNameSelect)) {
header.style.padding = "20px";
header.style.borderBottom = "1px solid #e3e3e3";
}
}
Options
Add a id´s name and see the results