|
-
Jul 16th, 2002, 04:28 PM
#1
Thread Starter
Fanatic Member
HELP! Div tag not sizing correctly [RESOLVED]
Hi,
I have a div tag which should not display any overflow. The div tag is contained within a table whos width property is set to 100%. The div tags width property is also set to 100%. According to msdn, the div tags width is based on its parents width. However this is not happening. If the text is long enough, it pushes the table off the page rather than hiding the overflow. I have even tried setting the table width down to 50px and it still resizes to go off the page. PLEASE HELP THIS IS GETTING REAL IRRITATING. WHAT CAN I DO TO GET THE DIV TO ALWAYS BE 100% OF THE TABLE WIDTH?
heres my code:
Code:
<table width=10px border=1>
<tr>
<td>
<div id=target style="overflow: hidden; width: 100%">htljsadgl;sadgljsalhdlsajhl;jsadhjsaljdhl;sajdhl;as;h</div>
</td>
</tr>
</table>
Note: ie5
Last edited by shunt; Jul 16th, 2002 at 05:23 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|