
Originally Posted by
questions
Can I open this up again and ask what size would one typically allow as a safety to fit a possible scrollbar... 20-30 pixels?
That's about right, 25 should be plenty. I just measured IE 7's on XP using IE developer toolbar's ruler at 20. However, in actual practice I have found that 22 can sometimes be required in some browsers to account for it, so 25 would be on the safe side. On FF and Opera, where the only difference between the two measurements below should be the scrollbar, it's reported here as 17:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
body {
overflow-y:scroll;
}
</style>
</head>
<body>
<script type="text/javascript">
alert(window.innerWidth - document.documentElement.clientWidth);
</script>
</body>
</html>
But I think that's just a tad low.
Bookmarks