Skip to content
Advertisement

Why is my div not expanding in width 100%?

I am creating a sidebar menu composed by 3 divs, these 3 divs should expand in “width” 100% of the menu width but they don’t. I have checked to make sure that all tags/divs are closed and make sure that are all displayed as grid and put on each width 100% but still they don’t expand to 100% width of their container. Why is that and how to fix it?

Here is my code:

JavaScript
JavaScript

Advertisement

Answer

Either make the menu class as div

JavaScript

or make a div below menu uwing the same.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement