Answers for "how to add class using css"

8

jquery addclass

$("#elem").addClass("classname");
Posted by: Guest on June-06-2020
0

Put a class in css

<html>
	<head>
		<style>
			/* Make sure to use a full stop to instead only focus on the classname that is in your html page */
			.class {
  				background-color: #eeeeee;
			}
		</style>
	<head>
    <body>
		<div class="class">
          	<p>hi</p>
        </div>
    </body>
</html>
Posted by: Guest on March-27-2021

Code answers related to "how to add class using css"

Code answers related to "Javascript"

Browse Popular Code Answers by Language