Suporte » Problemas no funcionamento » Header sem overflow
Header sem overflow
-
Em computador com tela muito pequena esta cortando o Header/Menu.
Estou querendo que o Header/Menu use o overflow corretamente.
Alguem poderia me ajudar ?
site: http://www.residencialestreladalva.com.br ( note que se a tela for muito pequena ela “come” o Header/menu)
abaixo tem uma parte do código do HEADER.
/* ################################################################ # HEADER STYLING ################################################################ */ #background_image img { /* Set rules to fill background */ min-height: 100%; min-width: 1024px; /* Set up proportionate scaling */ width: 100%; height: auto; /* Set up positioning */ position: fixed; top: 0; left: 0; z-index: -999; } #header { display: none; z-index: 400; top: 45px; left: 45px !important; width: 255px; position: fixed; opacity: 0.8; } #header_top { height: 6px; width: 255px; background-image: url(images/bordertop.png); } #header_content { padding: 14px 0 0; background-color: #000; -moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.5); -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.5); box-shadow: 0 0 3px rgba(0, 0, 0, 0.5); } #header_bottom { display: block; height: 6px; width: 255px; background-image: url(images/borderbottom.png); } #header, #header p { color: #868686; } #logo { width: 235px; margin: 0 0 20px 20px; } #sitename { width: 300px; margin: 10px 0 25px 0; padding-left: 20px; } #sitename a { text-transform: uppercase; color: #fff; font-size: 36px; } #search input { border: 0px; padding: 7px 0 7px 10px; color: #666666; font-style: italic; background: #262626 url(images/search.png) no-repeat right; width: 203px; } #search { opacity: 0.9; padding: 22px 0 20px 20px; } #search input[type=submit] { display: none; } #sf-menu ul { width: 21.2em; } #sf-menu ul li { position: relative; list-style: none; padding: 10px 20px 10px 20px; border-bottom: 1px solid #191919; background: url(images/plus.png) no-repeat right; } #sf-menu ul li { display: block; } #sf-menu ul li ul { position: absolute; margin: 20px 0 0 224px; width: 18em; background-color: #000; border-color: transparent; z-index: 99999; } #sf-menu ul li a { text-transform: uppercase; border: none; } #sf-menu ul li a:active { outline: none; } #sf-menu ul li a strong { font-size: 18px; color: #fff; display: block; z-index: 300; } #sf-menu ul li a span { clear: left; font-size: 14px; color: #a0a0a0; margin-left: -3px; } #sf-menu ul li ul li { padding: 0 15px; border: none; background: none; } #sf-menu ul li ul { padding: 15px 0; border: 1px solid #191919; } #sf-menu ul li ul li a { color: #fff; } #sf-menu ul li ul li a span { display: none; } #sf-menu ul li ul li ul { position: absolute; margin: -1px 0 0 195px; }
-
Você pode resolver com media query de css para height, ou com algum script de jquery para verificar a altura da tela do user, então, se altura for menor do que a altura X(altura do header, ou tamanho que esconde o header) deixe o css do header com position absolute e não fixed, então o conteúdo/janela vai ter uma rolagem padrão;
mais ou menos isso (não pesquisei pra ver a sintaxe exata)
@media screen (max-height: 800px) { //800 = altura chutada do header .header{position:absolute;} }
- O tópico ‘Header sem overflow’ está fechado a novas respostas.