C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » HTML »

Only TBODY to scroll


Posted Date: 23 Oct 2009      Posted By: nitkumr      Member Level: Bronze     Points: 1   Responses: 4



hi

I want the scroll to work on "tbody alone". Here, ti is not working.

The thead should be stable and tbody should scroll.

Can you help me?

<div style="height:250px;border-width:2px;width:50%;border-color:#0066cc;border-style:solid">
<table border="3" bordercolor="gray" align="right" id="displayTable">
<thead style="overflow:scroll">
<tr>
<th>x</th>
<th>y</th>
<th>z</th>
</tr>
</thead>
<tbody style="font-size:80%;height:100%;overflow:scroll" align="center">
<tr>
<td>x</td>
<td>y</td>
<td>z</td>

</tr>
</table>
</div>





Responses

Author: ArunKarthick Shanmugam    23 Oct 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

remove style="overflow:scroll" from the thread tag


Author: nitkumr    23 Oct 2009Member Level: BronzeRating: 2 out of 52 out of 5     Points: 2

Hi,


thanks for the reply

Actually i tried that one too but still not working. fine

Any other solution?



Author: Venkatesh Ellur    26 Oct 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

Hi

Give the overflow scroll to the division and fix up the height and width for the division probably that should solve your problem.

THIS POSTING IS PROVIDED WITH NO WARRANTIES, BEWARE OF BUGS IN THE ABOVE CODE; I HAVE ONLY PROVED IT CORRECT AS PER MY KNOWLEDGE, NOT TRIED IT.

Regards
--------------------------
Venkatesh Ellur
+919886417764
venkatesh.ellur@gmail.com



Author: soniya bhatia    30 Oct 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

hi

do that

fix the position of div in style tag
position:fixed;



Post Reply
You must Sign In to post a response.
Next : Css if the char exceeds 60 then it should be in next line(including space)
Previous : Text with different color letters
Return to Discussion Forum
Post New Message
Category: HTML

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use