par
Hywan » 15 juil. 2008, 10:34
Hey

,
Sinon tu n'as qu'à regarder mes feuilles CSS

.
Code : Tout sélectionner
http://hoa-project.net/Css/Layout.css
div#nav {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 13000;
padding: 0 0 10px 0;
background: transparent url("../Media/Image/NavBkg.png") 0 100% repeat-x;
}
div#nav p {
margin: .1em;
padding: 0;
}
div#nav p a {
color: #930;
margin: 0 .5em;
padding: 0 .5em;
border: 0;
background: none;
}
div#nav p a:hover,
div#nav p a:focus {
color: #000;
}
Et une mention spéciale pour IE < 7 :
Code : Tout sélectionner
http://hoa-project.net/Css/IE.css
div#nav {
padding: 0;
background: transparent url("../Media/Image/NavBkg.gif") 0 100% repeat-x;
} On vire le png pour un gif, et je mets le pas à 0. En plus, IE ne comprend pas la position fixed, mais bon … On limite la casse hein

.
Et pour information, on appelle ça une barre de navigation

.
Hey :),
Sinon tu n'as qu'à regarder mes feuilles CSS ;-).
[code]http://hoa-project.net/Css/Layout.css
div#nav {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 13000;
padding: 0 0 10px 0;
background: transparent url("../Media/Image/NavBkg.png") 0 100% repeat-x;
}
div#nav p {
margin: .1em;
padding: 0;
}
div#nav p a {
color: #930;
margin: 0 .5em;
padding: 0 .5em;
border: 0;
background: none;
}
div#nav p a:hover,
div#nav p a:focus {
color: #000;
}[/code]
Et une mention spéciale pour IE < 7 : [code]http://hoa-project.net/Css/IE.css
div#nav {
padding: 0;
background: transparent url("../Media/Image/NavBkg.gif") 0 100% repeat-x;
}[/code] On vire le png pour un gif, et je mets le pas à 0. En plus, IE ne comprend pas la position fixed, mais bon … On limite la casse hein ;-).
Et pour information, on appelle ça une barre de navigation :).