Créer un div immobile
zecka
Messages postés
115
Date d'inscription
Statut
Membre
Dernière intervention
-
zecka Messages postés 115 Date d'inscription Statut Membre Dernière intervention -
zecka Messages postés 115 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
J'ai un problême, j'aimerai créer une navigue qui ne suis pas le reste de la page lorsque l'on scroll. En quelque sorte qu'elle ne soit pas pris en compte pas le scroll. On m'a déja dit de metre mon div en position absolue mais ca ne marche pas. Comment faire?
J'ai un problême, j'aimerai créer une navigue qui ne suis pas le reste de la page lorsque l'on scroll. En quelque sorte qu'elle ne soit pas pris en compte pas le scroll. On m'a déja dit de metre mon div en position absolue mais ca ne marche pas. Comment faire?
A voir également:
- Créer un div immobile
- Créer un compte google - Guide
- Comment créer un groupe whatsapp - Guide
- Créer un lien pour partager des photos - Guide
- Créer un compte gmail - Guide
- Créer un compte instagram sur google - Guide
2 réponses
il me semble qu'il faut non seulement le mettre en position:absolute mais aussi scrollbar:no et overflow:hidden, à tester ;)
Ca ne change toujours rien
c'est sur le div navigu que je veu appliquer cela
ma css:
@charset "UTF-8";
/* CSS Document */
* {
margin: 0px;
padding: 0px;
}
#wrapper {
width: 1000px;
margin-right: auto;
margin-left: auto;
background-image: url(image/fond.png);
background-repeat: no-repeat;
position: absolute;
left: auto;
right: auto;
}
#contenair {
width: 1000px;
margin-right: auto;
margin-left: auto;
}
#Header {
width: 649px;
float: right;
}
#content {
float: right;
width: 649px;
background-color: #418722;
}
#navigu {
top: 338px;
left: 65px;
position: absolute;
height: 12px;
width: auto;
font-family: Impact, Arial, Helvetica, sans-serif;
font-size: 30pt;
line-height: 23pt;
scrollbar: no;
overflow:hidden
}
#navigu a {
color: #000000;
text-decoration: none;
}
#navigu a:hover {
color: #418722;
text-decoration: none;
}
#footer {
clear: both;
}
.classe_transparente {
filter:alpha(opacity=74);
-moz-opacity:0.7;
-khtml-opacity: 0.7;
opacity: 0.7;
}
c'est sur le div navigu que je veu appliquer cela
ma css:
@charset "UTF-8";
/* CSS Document */
* {
margin: 0px;
padding: 0px;
}
#wrapper {
width: 1000px;
margin-right: auto;
margin-left: auto;
background-image: url(image/fond.png);
background-repeat: no-repeat;
position: absolute;
left: auto;
right: auto;
}
#contenair {
width: 1000px;
margin-right: auto;
margin-left: auto;
}
#Header {
width: 649px;
float: right;
}
#content {
float: right;
width: 649px;
background-color: #418722;
}
#navigu {
top: 338px;
left: 65px;
position: absolute;
height: 12px;
width: auto;
font-family: Impact, Arial, Helvetica, sans-serif;
font-size: 30pt;
line-height: 23pt;
scrollbar: no;
overflow:hidden
}
#navigu a {
color: #000000;
text-decoration: none;
}
#navigu a:hover {
color: #418722;
text-decoration: none;
}
#footer {
clear: both;
}
.classe_transparente {
filter:alpha(opacity=74);
-moz-opacity:0.7;
-khtml-opacity: 0.7;
opacity: 0.7;
}