Normal Screen: I have put the navbar into the first container with 15% width and the main-content into the second container (85% width). Did that by creating grid-template-columns. The first container is using a border-right-style.
media-query: the navbar should move to the top. it works, but i cant get rid of the border. it just stays where it was placed on normal screen mode. how do i get rid of the two column grid classification without changing the normal screen mode.
Thx for checking my code.
-“You are not changing the grid inside the media query. It is still a two-column layout.” how do i change it for only the media query ?
Add the .grid-container selector inside the media query code and change grid-template-columns to use one column.
You have to move the media query to the bottom of the CSS (or at least below all CSS it is modifying) that is how media queries work. They use the cascade (the C in CSS).