CSS CSS Layout Basics Getting Started with CSS Layout Using a Mobile First Approach

tony kim
tony kim
990 Points

after i removed width: 70% and margin: 0 auto from .container and added it to @media

after i removed width: 70% and margin: 0 auto from .container and added it to @media my webpage layout on larger screen did not adjust like the video. All my content is on the edge of the browser now. Any ideas whats going on

3 Answers

Please put up your code so we can better help.

But in speculation. You may need to keep those css attributes on the div and perhaps others in the @media? It needs a starting point to work from.

Also - the parent div to what you are working may need a width too.

Marius Furnica
Marius Furnica
8,536 Points

I had the same problem after I cut from container the properties and put them in @media ...

Marius Furnica
Marius Furnica
8,536 Points

Oh done...I put .container: not .container