Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<div style="overflow: scroll; height: 100px; width: 320px;">
    <table style="width: 300px" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                Column 1
            </td>
            <td>
                Column 2
            </td>
            <td>
                Column 3
            </td>
            <td>
                Column 4
            </td>
        </tr>
    </table>
    <div style="overflow: auto; overflow-y: hidden; height: 100px; width: 320px;">
        <table style="width: 300px;" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    Value 1
                </td>
                <td>
                    Value 2
                </td>
                <td>
                    Value 3
                </td>
                <td>
                    Value 4
                </td>
                <td>
                    Value 5
                </td>
               
            </tr>
                    <tr>
                <td>
                    Value 1
                </td>
                <td>
                    Value 2
                </td>
                <td>
                    Value 3
                </td>
                <td>
                    Value 4
                </td>
               
            </tr>
        </table>
    </div>
</div>

image is at following link<pre>

http://sdrv.ms/1aaQyj2

whats the mistake i done?
Posted
Updated 14-Nov-13 20:15pm
v2

1 solution

it should be fine with your code but I believe your class is overitten by another css property.

http://jsfiddle.net/YY94A/[^]

could you please provide your CSS classes/files ?
 
Share this answer
 
Comments
Nelek 18-Nov-13 9:19am    
Please don't post solutions to chat with people asking or answering. The messages are not always sorted by date, so it can be a bit difficult to follow them correctly.
The best option is to use the "Have a question or comment?" (or the tiny "reply" on another comment). Another advantage is, that the person you write to will get a notification, otherwise it could be that he/she doesn't see your additional question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900