How to Have Responsive Div's That Get Wider as the Navbar Closes


How to Have Responsive Div's That Get Wider as the Navbar Closes



So I am working on a portal and I found a good calendar to throw into my web page. Right now, the css has it set up so that the first div has the attribute "left:250px" and then the "width:200px" and then my second div is set to "left:450". The problem is when I close my side navbar the divs stay stationary. I want them to be responsive and slide over the area where the navbar once was but I haven't figured out how to do that. I've tried using but it wasn't seeming to work very well. Below are pictures of my problems for you guys to see,



Before:



sidebar opened



After:



sidebar closed



Here is my code, both the css and html. A lot of html, js and css has been left out but I think the code I linked is where the problem is going wrong. If you think the problem might be elsewhere please let me know and I can link it. Thanks for the help friends!!




#lnb {
position: absolute;
left: 250px;
width: 200px;
top: 49px;
bottom: 0;
border-right: 1px solid #d5d5d5;
padding: 14px 10px;
background: #fafafa;
}

#right {
position: absolute;
left: 450px;
top: 49px;
right: 0;
bottom: 0;
}





New schedule







View all


</div>


</div>

</div>

Popular posts from this blog

api-platform.com Unable to generate an IRI for the item of type

PHP contact form sending but not receiving emails

Do graphics cards have individual ID by which single devices can be distinguished?