Answers for "how to refer to a 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

Code answers related to "how to refer to a class in css"

Browse Popular Code Answers by Language