Answers for "can u do css work with javascript"

1

css javascript

//on HTML *Purist Style*           || *Only JavaScript*
<style>                            // 
.example {						   // para.style.color = 'white';
  color: white;			 		   // para.style.background = 'black';
  background-color: black;		   // para.style.padding = '10px';
  padding: 10px;				   // para.style.width = '250px';
  width: 250px; 				   // para.style.textAlign = 'center';
  text-align: center;
}
</style>
// on JavaScript
Element.setAttribute('class', 'highlight');
Posted by: Guest on December-15-2021

Code answers related to "can u do css work with javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language