.demo-bt{ height:40px; line-height:40px; float:left; text-align:center; list-style:none; background:#1d5b89; border-top:1px solid #073356; border-bottom:1px solid #073356; border-right:1px solid #073356; background:#1b517c} #demo-links{ padding:0px; margin:0px} #demo-menu{ width:auto; height:0px; top:0px; position:absolute; margin:0; padding:0; overflow:hidden} #demo-icon-menu{ top:0px; left:50%; margin-left:-14px; cursor:default; color:#094069; font-size:2em; position:absolute} #demo-links,#demo-icon-menu,.bt a{ -webkit-transition:all 0.3s ease-out; -moz-transition:all 0.3s ease-out; -o-transition:all 0.3s ease-out; transition:all 0.3s ease-out} #demo-menu-wrappe{ width:454px; text-align:center; position:relative; left:-227px; top:30px; margin-left:50%} #demo-links{opacity:0} .demo-bt a{ color:#eaebeb; display:block; width:150px; border-top:1px solid #486A84; text-shadow:1px 1px 0px rgba(0, 0, 0, .5); text-decoration:none; font-weight:bold; font-family: Arial, Helvetica, sans-serif} .demo-bt a:hover{background:rgba(54, 25, 25, .3)} #demo-menu ul li:first-child{border-left:1px solid #073356;} #demo-menu-wrappe:hover #demo-menu{height:40px;} #demo-menu-wrappe:hover #demo-icon-menu{opacity:.5;top:40px} #demo-menu-wrappe:hover #demo-links{opacity:1} /* Menu 2 */ #demo-nav-wrap{ margin:0 30px; overflow:hidden; position:relative; text-align:center; height:62px; width:300px; top:45px; left:-145px; margin-left:50%; border-top:1px solid #A1CFEA} #demo-icon-down-open,#demo-menu-second{ -webkit-transition:all 0.5s ease; -moz-transition:all 0.5s ease; -o-transition:all 0.5s ease; transition:all 0.5s ease} #demo-menu-second{ line-height:0; position:absolute; top:-14px; width:100%; font-family:Arial,Helvetica,sans-serif; font-size:1.3em} #demo-menu-second a:link,#demo-menu-second a:visited,#demo-menu-second a:hover,#demo-menu-second a:active{ color:#49738D; font-size:1.2em; outline:0 none; text-shadow:1px 1px 1px rgba(0, 0, 0, 0.6)} #demo-menu-second a:link{text-decoration:none} #demo-menu-second a{position:relative;z-index:1} #demo-icon-down-open{ color:#49738D; cursor:default; font-size:3.5em; text-shadow:2px 2px 2px rgba(0, 0, 0, 0.8)} #demo-nav-wrap:hover #demo-menu-second{padding-top:25px;top:-12px;color:#575858} #demo-nav-wrap:hover #demo-icon-down-open{opacity:.0} /* FOR BOTH Font icons */ @font-face{ font-family:'icomoontut'; src:url('http://www.webtutorialsource.com/wp-content/uploads/assets/fonts/showhidemenuwithcssonly/icomoontut.eot'); src:url('http://www.webtutorialsource.com/wp-content/uploads/assets/fonts/showhidemenuwithcssonly/icomoontut.eot?#iefix') format('embedded-opentype'), url('http://www.webtutorialsource.com/wp-content/uploads/assets/fonts/showhidemenuwithcssonly/icomoontut.woff') format('woff'), url('http://www.webtutorialsource.com/wp-content/uploads/assets/fonts/showhidemenuwithcssonly/icomoontut.ttf') format('truetype'), url('http://www.webtutorialsource.com/wp-content/uploads/assets/fonts/showhidemenuwithcssonly/icomoontut.svg#icomoon') format('svg'); font-weight:normal; font-style:normal} [data-icons]:before { content:attr(data-icons); font-family:'icomoontut'; font-variant:normal; font-weight:normal; line-height:1; text-transform:none} .demo{height:140px}CSS Archives | Page 2 of 3 | Web Tutorial Source