JSFiddle - React, Tailwind, and code Playground
by Usul Pro
HTML
<div id="field">
<!-- This is the Div I want to center in my #field wrapper DIV -->
<div class="defendLineSE">
<div id="defendie" position="defender" class="drop firstColumn def"><div id="df1461" data-playername="J. Callsen-Bracker" data-team="Augsburg" costsforthisplayer="15.00"><img src="../game/images/shirts/43.png" width="100%"><span class="crossIcon"></span><span class="playerInfoSpan">J. Callsen-Bracker</span><span class="playerInfoSpan2ndRow">15.00 M (Aug)</span> <span class="playerInfo">Info</span><div></div></div></div>
<div id="defendie2" position="defender" class="drop secondColumn def"><div id="df1480" data-playername="C. Janker" data-team="Augsburg" costsforthisplayer="5.00"><img src="../game/images/shirts/43.png" width="100%"><span class="crossIcon"></span><span class="playerInfoSpan">C. Janker</span><span class="playerInfoSpan2ndRow">5.00 M (Aug)</span> <span class="playerInfo">Info</span><div></div></div></div>
<div id="defendie3" position="defender" class="drop thirdColumn def"><div id="df1482" data-playername="R. Framberger" data-team="Augsburg" costsforthisplayer="15.00"><img src="../game/images/shirts/43.png" width="100%"><span class="crossIcon"></span><span class="playerInfoSpan">R. Framberger</span><span class="playerInfoSpan2ndRow">15.00 M (Aug)</span> <span class="playerInfo">Info</span><div></div></div></div>
</div>
</div>
CSS
body {
margin: 0;
padding: 0;
background-image: url(bg2.jpg);
background-repeat: no-repeat;
background-color: #272B30;
font-size: 28px;
line-height: 32px;
color: #333;
word-wrap: break-word !important;
font-family: Arial,Helvetica Neue,Helvetica,sans-serif;
}
/* Imports
--------------------------------------------- */
@import url(https://fonts.googleapis.com/css?family=Roboto+Slab);
@import url(https://fonts.googleapis.com/css?family=Open+Sans);
/* Helper Classes
--------------------------------------------- */
.clearfix {
display: block;
clear: both;
}
/* Typography
--------------------------------------------- */
p {
margin: 0 0 24px;
margin: 0 0 2.4rem;
padding: 0;
}
/* Links
--------------------------------------------- */
a {
text-decoration: none;
color: #FF5722
}
a:hover {
text-decoration: underline;
color: #E64A19;
}
/* Headings
--------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
color: #333;
font-family: "Roboto Slab", sans-serif;
font-weight: 700;
margin: 0 0 16px;
}
h1 {
font-size: 20px;
}
h2 {
font-size: 30px;
}
h3 {
font-size: 24px;
}
h4 {
font-size: 20px;
}
h5 {
font-size: 18px;
}
h6 {
font-size: 16px;
}
/* Sections
--------------------------------------------- */
#container {
margin: 0 auto;
max-width: 1800px;
font-family: Arial,Helvetica Neue,Helvetica,sans-serif;
}
/* Header
--------------------------------------------- */
header {
width: 100%;
height: 75px;
background-color: #000000;
padding: 0.5%;
}
header #title {
font-size: 20px;
color: #fff;
}
/* Navigation
--------------------------------------------- */
nav {
width: 97%;
background-color: black;
padding: 0 1.5% 0 1.5%;
opacity: 0.5;
}
nav ul li {
display: inline-block;
padding: 15px 1.5% 15px 1.5%;
}
nav ul li a {
text-decoration: none;
color: #ffffff;
font-size: 1.2em;
}
nav ul li a:hover {
color: #000000;
text-decoration:...