...

View Full Version : Scrolling within DIV



Uzair
01-25-2007, 11:02 AM
I saw somewhere OVERFLOW: SCROLL for scrolling contents within a DIV.
But its not working in my code, wots the prob with my code, please help...
Here's the code...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<div id="hiddenDIV1" style="position:absolute; top:100px; left:100px; height:30; width:100; overflow-y: scroll; border: 1px solid #0099CC;">
<table width="28%" border="0" cellpadding="3" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="53" height="21" valign="middle">Hello</td>
<td width="67" valign="middle">Hello</td>
<td width="70" valign="middle">Hello</td>
<td width="70" valign="middle">Hello</td>
<td width="70" valign="middle">Hello</td>
<td width="70" valign="middle">Hello</td>
</tr>
<tr>
<td colspan="6" valign="top"><strong>Note:</strong> What are you doing here?<br /><br /></td>
</tr>
<tr>
<td width="53" height="21" valign="middle">Hello</td>
<td width="67" valign="middle">Hello</td>
<td width="70" valign="middle">Hello</td>
<td width="70" valign="middle">Hello</td>
<td width="70" valign="middle">Hello</td>
<td width="70" valign="middle">Hello</td>
</tr>
<tr>
<td width="53" height="21" valign="middle">Hello</td>
<td width="67" valign="middle">Hello</td>
<td width="70" valign="middle">Hello</td>
<td width="70" valign="middle">Hello</td>
<td width="70" valign="middle">Hello</td>
<td width="70" valign="middle">Hello</td>
</tr>
</table>
</div>
</body>
</html>

VIPStephan
01-25-2007, 01:08 PM
What browser are we talking about? As far as I'm concerned only IE understands overflow-x and overflow-y yet. That's a MS proprietary thing that is supposed to become part of the standards soon (when CSS3 is released).

ahallicks
01-25-2007, 01:10 PM
height:30; width:100;

Should be:

height:30px; width:100px;

Uzair
01-25-2007, 01:12 PM
I'm using IE



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum