JSFiddle - React, Tailwind, and code Playground
by fred02138
HTML
<div class="outleftcontainerunder">
</div>
<div class="maincontainer">
<div class="innermaincontainer">
<div class="articlebutton"></div>
<div class="discussionbutton"></div>
<div class="editbutton"></div>
<div class="searchbar"></div>
</div>
</div>
CSS
body,html
{
margin: 0;
padding: 0;
height: 100%;
}
.outleftcontainerunder /*I want this div to be in position fixed and height as 100% of the screen. But when I do it, there is a chaos*/
{
width: 175px;
height: 250px;
background: green;
float: left;
position: relative;
}
.maincontainer
{
width: calc(100% - 175px);
height: calc(100% + 50px);
float: left;
position: relative;
}
.innermaincontainer
{
width: 90%;
height: 1200px;
background: lightgrey;
margin: auto;
margin-top: 100px;
position: relative;
}
.discussionbutton
{
width: 150px;
height: 50px;
background: orange;
top: -50px;
left: 142px;
position: absolute;
}
.editbutton
{
width: 110px;
height: 50px;
background: green;
top: -50px;
right: 0px;
position: absolute;
}
.searchbar
{
width: 250px;
height: 30px;
background: black;
top: -100px;
right: 50px;
position: absolute;
}