HTML CSS examples for CSS Layout:Responsive Media
Media Queries Display:none
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> body {<!-- ww w. j av a 2 s. c o m--> margin:0; font-family:'Titillium Web'; } a:hover { color:Chartreuse; } a { color:yellow; text-decoration:none; } #top { width:100%; height:141px; background-color:blue; } #containerlogomenu { padding:21px; width:41%; } #logo { float:left; padding-left:51px; padding-right:51px; width:61px; height:100px; background-color:pink; background-repeat:no-repeat; } #menu { font-weight:601; font-size:20px; line-height:111px; width:100%; margin:0 auto; color:OrangeRed; } @media screen and (max-width:1155px) { #containerlogomenu { width:61% !important; } #logo { padding:0px; margin-left:auto; margin-right:auto; } } @media screen and (max-width:761px) { #containerlogomenu { width:100% !important; padding:0px; } #logo { display:none; padding:0px; margin-left:auto; margin-right:auto; } #menu { width:100% } .HomeLink { display:none; } } </style> </head> <body> <div id="top" align="center"> <div id="containerlogomenu" align="center"> <div id="logo"></div> <div id="menu"> <a href="#" class="HomeLink">Lore</a>Lor <a href="#step1">Lorem </a>Lor <a href="#step2">Lorem </a>Lor <a href="#step3">Lorem </a> </div> </div> </div> </body> </html>