<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr"> <head> <title>"position: fixed" compatible Microsoft Internet Explorer 6</title> <!-- Code CSS for Firefox, Safari, Opera, Internet Explorer 7... --> <style type="text/css" media="screen"> #fixed { position: fixed; left: 0; top: 0; right: 0; width: 100%; padding: 10px; background: gray; } </style> <!-- Code CSS for Internet Explorer 6 --> <!--[if lte IE 6]> <style type="text/css" media="screen"> #fixed { position: absolute; top: expression((document.documentElement.scrollTop || document.body.scrollTop) + this.offsetHeight - this.offsetHeight); } </style> <![endif]--> </head> <body> <div id="fixed">DIV in position: fixed;</div> <p>Content...</p> <p>Content...</p> <p>Content...</p> <p>Content...</p> <p>Content...</p> <p>Content...</p> <p>Content...</p> <p>Content...</p> <p>Content...</p> <p>Content...</p> <p>Content...</p> <p>Content...</p> </body> </html>
Source: Asselin Benoit Developpement, conception de sites internet