← HTML + CSS

Barra fixa no topo do site

Lida 10764 vezes

Offline

Diogo Pinto 
Administrador
Mensagens 4400 Gostos 371
Feedback +4

Troféus totais: 37
Trófeus: (Ver todos)
Avatar Search Level 6 Linux User Mobile User Super Combination Combination Topic Starter 50 Poll Votes 10 Poll Votes

Boa noite a todos,

Preciso de criar uma barra fixa no topo de um site. Criei aqui um código mas não funciona pois os ficheiros flash e youtube sobrepõem-se à barra. Existe forma de dar volta a isso?

Código: (html4strict) [Seleccione]
<div style="position: fixed; width: 100%; min-height: 40px; text-align: center; background: #333;">Barra</div>

Obrigado a todos :)
Offline

Pedro Lopes 
Beta tester
Mensagens 3568 Gostos 18
Feedback +6

Troféus totais: 32
Trófeus: (Ver todos)
Level 6 Windows User Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3

Tenta usar o z-index: 999;
Offline

Diogo Pinto 
Administrador
Mensagens 4400 Gostos 371
Feedback +4

Troféus totais: 37
Trófeus: (Ver todos)
Avatar Search Level 6 Linux User Mobile User Super Combination Combination Topic Starter 50 Poll Votes 10 Poll Votes

Tenta usar o z-index: 999;

Perfect pedro ;) Obrigado! :)