Answers for "how to add style to all div"

CSS
2

css how to style a div

/*
<div class="#">
	<p>Hello World</p>
</div>
*/
/*put a dot in front of the name from your class*/
.#{
	display: block;
  	margin: auto;
  	width: 50%;
}
Posted by: Guest on May-14-2020
0

CSS style all div elements

div {
  /* add custom styling here */
}
Posted by: Guest on June-12-2021

Browse Popular Code Answers by Language