By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,700 Members | 1,506 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,700 IT Pros & Developers. It's quick & easy.

How to avoid horizontal scroll bar in DIV Tag

P: n/a
Hi,

I am displaying asp.net datagrid in DIV tag. I have specified
following css to DIV.

..divBox
{
border:solid 1px black;
min-width : 150px
max-height : 150px;
background-color : Silver;
position:absolute;
overflow-y:auto;

}

It is working fine if width of grid is greater than min-width. But
when height is greater than instead of only verticle scroll bar, both
scrollbars are being displayed.

How can horizontal scroll bar can be avoid.

Help is highly appriciated.

-Nitya
Sep 14 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
ni**********@gmail.com:
How can horizontal scroll bar can be avoid.
http://www.brunildo.org/test/Overflowxy2.html
Sep 14 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.