Task. Fixed menu at the top of the page width from 1024px to 1680px. It should be centered, have a decorative border below and indents at the edges.
Problem. When the browser window is reduced to a width of less than 1024px, the horizontal scroll bar does not appear, making it impossible to use such navigation on screens with a width of less than 1024px.
The same problem is present on the site http://www.nike.com/us/en_us/ but this resource has a separate mobile version of the site, which, in fact, eliminates this disadvantage.
Markup:
<div class="header"> <div class="navigation"> <ul> <li> <a href="#">Home</a> </li> <li> <a href="#">Products</a> </li> <li> <a href="#">Downloads</a> </li> <li> <a href="#">Applications</a> </li> <li> <a href="#">Projects</a> </li> </ul> </div> </div> <div class="content"></div> Styles:
body, html { font-size: 100%; padding: 0; margin: 0; } *, *:after, *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } li { list-style: none; display: inline-block; margin-left: 2em; } .header { background: DarkSalmon; padding: 0 3em; position: fixed; top: 0; width: 100%; } .navigation { border: 5px solid IndianRed; margin: 0 auto; text-align: right; min-width: 1024px; max-width: 1680px; } .content { background: MediumSeaGreen; height: 4000px; }