Does anyone know how to do the following.
I have a div element that I want to resize according to the width of the visitors browser.
So if the browser window is say 1024px or less, I would want the div to be 100px less wide than the window size
If the browser is greater than 1024, I want the div to be 1000px max.
It would need to work across all major browsers
Any help on this would be apprciated.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
<div id="divMainContent" style="border: 1px solid black; width:BrowserSizeHere;">te