JSFiddle - React, Tailwind, and code Playground

by Aarondv1

HTML

<!DOCTYPE html>

<html>
<head>
<meta charset="utf-8">
<title></title>

<link rel="stylesheet" href="styles.css">
</head>

<body>
<header class="headercontainer">
<p>30 years experience in Metro-Detroit law</p>
<h1>M</h1>

</header>

<!-- bRAG POINTS
<div class="bragbanner">
<img src="lawyers_logo.png">
<img src="avvo_logo.png">
<img src="legalnews_logo.png">
<img src="aba.jpg">
<img src="free-press.jpg"> -->
</div>

<div class="mainarea">



	
		<ul>
		<li><h3>Family Law</h3></li>
		<li><h3>Domestic Law</h3></li>
		
	
	
	
		<li><h3>Matrimonial Law</h3></li>
		<li><h3>Probate Law</h3></li>
		</ul>
	
	
	
	

</div>


<footer></footer>
</body>




</html>

CSS

/* * {
	
	border: 1px solid blue;
}
 */


.headercontainer {
	
	border: 1px solid blue;
	text-align: center;
	margin-bottom: 10px;
	margin-left: auto;
	margin-right: auto;
	
	
}


.bragbanner {
	
	text-align: center;
}


div img {
	max-width: 144px;
	max-height: 35px;
	
	-webkit-filter: grayscale(1);
	filter: grayscale(1);
	
	

}


.mainarea {
	
	 text-align: center;
	
	width: 65%;
	
	border: 1px dotted orange;
	margin-left: auto;
	margin-right: auto;
	
	overflow: hidden;
	
	padding-left: auto;
	padding-right: auto; 
	
	
	max-width: 940px;   /*What's the significance of 940px? */
	margin: 0 auto;
	padding: 0 5%;
	
	
	
}

ul {
	
	
	list-style: none;
	padding: 0;
	margin: 0;
}

ul li {
	
	border: 1px solid black;
	width: 45%;
	height: 300px;
	float: left;
	margin: 2.5%;
	
	
	
	
}