I don't know why, but my html page's 2 divs overlap each other instead of appearing side by side. Also, the blue div doesn't take up 100% of the height like it should. NOTE: The blue div currently only has 1 element (input)
This is my CSS code:
.bluediv { height: 100%; width: 16.3%; position: fixed; z-index: 1; top: 0; left: 0; box-shadow: 0px -10px 50px black; float: left; } .reddiv{ height: 100%; }
Thank you, Internet Flame
You can use the default orientation
row
to displayflex
like this:Fixed on one side: