Answers for "using class in css"

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

Browse Popular Code Answers by Language