Forum Moderators: not2easy
eg... i want the horizontal scrollbars to appear if the browser window is less than 700 pixels.
there are no tables or anything like that on the page. the only tags i am able to style are <body> and <div>.
but the problem is that the <div> already has a width. and it does not span the entire width of the page.
is there a way to apply a width to the <body> tag?
<body> element, but you'll need to do a little extra just for IE 6. Should go like this: For standards-compliant browsers
body { min-width: 700px; } Just for IE 6 (read up on conditional comments [webmasterworld.com] if you don't know what they are already.)
body { width: expression((document.body.clientWidth < 730) ? '700px' : 'auto'); } Things to note: If the expression for IE uses two of the same values the browser will crash when it reaches that width. Just have a play and see at what point it will do what you want it to, without crashing.