JSFiddle - React, Tailwind, and code Playground

by Ahmad Shadeed

HTML

<div class="post">
    <div class="contact col-lg-6">
	                              <div class="title"><h2>Post a comment</h2></div>
	                              
	                              <form>
		                              <div class="input-group">
			                              <label>Use Your Real Name</label>
		                                  <input type="text" placeholder="Name"/>
		                              </div>
		                              <div class="input-group">
		                                  <input type="text" placeholder="Email" />
		                                  <label>Email Will Not Be Published</label>
		                              </div>
		                              <div class="input-group message">
		                                  <label>Write a good comment</label>
		                                  <textarea name="" id="" cols="47" rows="7" placeholder="Message"></textarea>
		                              </div>
		                             
	                              </form>
                              </div>
</div>

CSS

.col-lg-6 {
    width: 50%;
}

.post .contact {
  display: inline-block;
  width: 100%;
  text-align: center;
}
.post .contact .title {
  display: inline-block;
  width: 100%;
}
.post .contact form {
  display: table;
  margin: 0 auto;
}
.post .contact form .input-group {
  display: inline-block;
  margin-left: 10px;
  margin-bottom: 15px;
  position: relative;
}
.post .contact form .input-group label {
  color: #8e8e8e;
}
.post .contact form .input-group input[type="text"] {
  background: #ebebeb;
  border: 0;
  outline: 0;
  height: 50px;
  border-radius: 5px;
  padding: 0 15px;
  font-size: 16px;
}
.post .contact form .input-group textarea {
  background: #ebebeb;
  border: 0;
  outline: 0;
  border-radius: 5px;
  padding: 15px;
  font-size: 16px;
  margin-right: 210px;
}
.post .contact form .post {
  width: 100%;
  background: #3eb3a5;
  color: #fff;
  font-size: 16px;
  border-radius: 5px;
  display: inline-block;
}
.post .contact form .full {
  width: 100%;
}
.post .contact form .half {
  width: 100%;
}
.post .contact form .half input[type="text"] {
  width: 48%;
}
.post .contact form .name input[type="text"] {
  float: left;
}