1.0.0 • Published 6 years ago

basichtmlstyled v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
6 years ago

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

1.0.1

6 years ago

1.0.0

6 years ago