Originally Posted by
jp504
Is it possible that have a fixed-width div span across the entire window. Just like a fluid layout would be 100%. If possible could anyone provide sample code.
No.
If the width is 100% it will adjust to the width of a viewer's window.
If fixed width it will stay fixed and create a horizontal scrollbar if necessary. You can add margin: auto to the div or page wrapper which, together with the fixed width, will center the width in larger windows and you can show a body background over the whole window.
If you code the div with left: 0; right: 0; and position: absolute or position: fixed; the div will stretch to the full width provided the div has no width or is width: 100%.
Code downloaded to my PC will be deleted in due course.
WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.