Why does:
width: 98%; max-width: 1140px;
do the same as
width: 1140px; max-width: 98%;
The first one make
Assuming that the container is your browser window, if you are on a 1280 px screen resolution then 98% would be 1254 px, which is still greater than 1140 px. So you see no difference. Try moving to lower resolution such as 1024px