Sam185 Posted June 19, 2012 at 10:24 PM Report Share #464261 Posted June 19, 2012 at 10:24 PM Boas, Pessoal eu gostaria de implementar no meu site, o mesmo "sistema" que o Facebook usa com a Barra superior, ao deslocar o scroll da página a Barra acompanha a página, o que é muito útil, porque temos sempre o menu à disposição. Alguém têm uma ideia de como isso se faz? Obrigado desde já, Samuel Samuel Tomé Link to comment Share on other sites More sharing options...
dash Posted June 20, 2012 at 06:36 AM Report Share #464294 Posted June 20, 2012 at 06:36 AM Será isto? https://www.portugal-a-programar.pt/topic/53661-como-fixar-bem-o-header/ Link to comment Share on other sites More sharing options...
Joel Luis Posted June 20, 2012 at 12:22 PM Report Share #464347 Posted June 20, 2012 at 12:22 PM É meteres no css position:fixed; Link to comment Share on other sites More sharing options...
MASNathan Posted June 20, 2012 at 04:46 PM Report Share #464424 Posted June 20, 2012 at 04:46 PM http://webdesign.tutsplus.com/tutorials/javascript-tutorials/create-a-sticky-navigation-header-using-jquery-waypoints/ Link to comment Share on other sites More sharing options...
Sam185 Posted June 20, 2012 at 04:51 PM Author Report Share #464427 Posted June 20, 2012 at 04:51 PM Será isto? http://www.portugal-...r-bem-o-header/ É isso ... É meteres no css position:fixed; Ele ficou fixo, mas agora tenho o div do conteudo a ficar por baixo do div do cabeçalho ... Samuel Tomé Link to comment Share on other sites More sharing options...
Joel Luis Posted June 21, 2012 at 08:53 AM Report Share #464530 Posted June 21, 2012 at 08:53 AM É isso ... Ele ficou fixo, mas agora tenho o div do conteudo a ficar por baixo do div do cabeçalho ... Hm já tentas-te meter fixed-center; Se não de tentar: top:10px; Link to comment Share on other sites More sharing options...
HappyHippyHippo Posted June 21, 2012 at 09:04 AM Report Share #464534 Posted June 21, 2012 at 09:04 AM se tiveres um url para o pessoal poder ver como tens isso ajudava ... IRC : sim, é algo que ainda existe >> #p@p Portugol Plus Link to comment Share on other sites More sharing options...
Sam185 Posted June 24, 2012 at 10:29 PM Author Report Share #465258 Posted June 24, 2012 at 10:29 PM Problema resolvido, era a forma como tinha a ordem dos divs, agora o cabeçalho funciona na perfeição com o position:fixed; obrigado! Samuel Tomé Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now