JSFiddle - React, Tailwind, and code Playground

by CoolBlue

HTML

<body>
    <div id="add_course">
        <form action="" method="post"
              enctype="multipart/form-data" name="add_course_form"
              id="add_course_form" onsubmit="return null;">
            <div class="add_course_lables">
                <input class="add_course_name" name="coursename"
                       type="text" id="coursename" size="30"
                       placeholder="Course Name" maxlength="64" />
                <input name="par" type="text" id="par" size="30" placeholder="Par" maxlength="2" />
                <input name="rating" type="text" id="rating" size="30" placeholder="Rating" maxlength="2" />
                <input name="slope" type="text" id="slope" size="30" placeholder="Slope" maxlength="3" />
            </div>
            <div class="container">
                <div id="add_course_table">
                    <div class="add_course_top_row">
                        <div>Hole</div>
                        <div></div>
                        <div></div>
                        <div></div>
                        <div></div>
                        <div></div>
                        <div></div>
                        <div></div>
                        <div></div>
                        <div></div>
                        <div></div>
                        <div></div>
                        <div></div>
                        <div></div>
                        <div></div>
                        <div></div>
                        <div></div>
                        <div></div>
                        <div></div>
                    </div>
                    <div class="add_course_other_rows">
                        <div>Par</div>
                        <div>
                            <input type="text" maxlength="1"
                                   name="par1" /><div></div>
                        </div>
                        <div>
                            <input type="text" maxlength="1"
           ...

CSS

@charset "utf-8";
body{
	counter-reset: debug-z;
}

/*Outer wrapper*/
div#add_course{
	display: inline-block;
	padding: 0;
	position: fixed;
	top: 20px; left: 20px;
	margin-right: 20px;
/*Align all in-line elements including text in divs*/
	text-align: center;
/*for debug only*****************************/
	/*outline: 3px dotted red;*/
	z-index: 0;
}
/*for debug only*****************************/
/*div#add_course:before{
	counter-increment: debug-z;
	content: attr(class) attr(id) ' ' counter(debug-z)
						' relative inline-block';
	display: inline-block;
	margin: 0;
	position: absolute;
	top: 0; left: 0;
	font-family: 'Open Sans', sans-serif;
	font-size: 20px;
	color: red;
	border-bottom: 3px dotted red;
	z-index: 10;
}*/

/*Form*/
form[name='add_course_form']{
	display: inline-block;
/*for debug only*****************************/
	/*outline: 1px dashed black;*/
}
/*for debug only*****************************/
/*form[name='add_course_form']:before{
	counter-increment: debug-z;
	content: attr(name) ' ' counter(debug-z) 
					' default inline-block';
	display: inline-block;
	position: absolute;
	top: 40px; left: 0;
	font-family: 'Open Sans', sans-serif;
	font-size: 20px;
	color: black;
	border-bottom: 3px dashed black;
	z-index: 10;
}*/

/*Labels*/
.add_course_lables {
	position: relative;
	display: block;
	left: 0; right: 0;
	height: auto;
	padding: 10px;
	border-radius: 5px 5px 0px 0px;
	border:1px solid #BFBFBF;
	margin-left: 0;
	margin-right: 0;
}
/*for debug only*****************************/
/*.add_course_lables:before{
	counter-increment: debug-z;
	content: attr(class) attr(id) ' ' counter(debug-z)
					' relative block';
	display: inline-block;
	position: absolute;
	margin: 10px 0;
	top: 0; right: 0;
	font-family: 'Open Sans', sans-serif;
	font-size: 20px;
	color: #BFBFBF;
	border-bottom: 1px solid #BFBFBF;
	z-index: 10;
}*/
	.add_course_lables input {
		color: #16a085;
		padding: 10px;
		display: inline-block;
		margin-top: 5px;
		margin-right:...