OVH Cloud OVH Cloud

[css] propriete expression() de IE

2 réponses
Avatar
Thibaut Allender
tres interessant,
je n'en avais encore jamais entendu parler

c'est en anglais, et ca se passe ici :
http://www.svendtofte.com/code/max_width_in_ie/

--
freelance + web|system developer|designer
+ 32 496 26 75 76 + http://www.capsule.org

2 réponses

Avatar
loufoque
Dans mon IE 6 Win, ça ne marche pas sur tes pages
(http://perso.club-internet.fr/v_pascal/web-jardin/html/IE_fixed.htm et
aussi la page d'accueil de ton site je crois)
Par contre, ça marche ici :
http://www.svendtofte.com/code/max_width_in_ie/position_fixed_ie.html
Avatar
loufoque
Après quelques tests, j'ai fait un code qui marche parfaitement dans
Moz, IE Win et IE Mac.

#fixed {
position: absolute;
left: 10px;
top: 50px;
top: expression(body.scrollTop + 50 + "px");
border: 1px solid red;
}

html[xmlns] #fixed {
position: fixed;
}

body {
background: url(null) fixed;
}