Answers for "css div styling"

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
2

how to make a div in html

<div class="myDiv">
  <h2>This is a heading in a div element</h2>
  <p>This is some text in a div element.</p>
</div>
Posted by: Guest on August-05-2020
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
2

how to make a div in html

<div class="myDiv">
  <h2>This is a heading in a div element</h2>
  <p>This is some text in a div element.</p>
</div>
Posted by: Guest on August-05-2020

Browse Popular Code Answers by Language