How to remove horizontal scroll bar in div

I am usig a gridview within a div. I want to remove the horizontal scr

Page 1 of 1

6 Replies - 114022 Views - Last Post: 25 March 2010 - 12:08 AM

#1 manigays  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 01-February 08

How to remove horizontal scroll bar in div

Post icon  Posted 01 February 2008 - 01:29 AM

<div style="width: 700px; height: 200px; background: #FFFFFF;
					overflow:auto;" runat="server">			 
				<asp:GridView
					ID="GridTotal"
					runat="server"
					width="100%"
					AlternatingRowStyle-BackColor="Beige"
					AutoGenerateColumns="true"
					Font-Size="8"
					Font-Names="verdana"
					FooterStyle-BackColor="black"
					HeaderStyle-BackColor="#FFA500"
					GridLines="None"
					CellPadding="0"
					CellSpacing="1"
					OnRowDataBound="GridTotal_RowDataBound"
					ShowFooter="true"
				>


Is This A Good Question/Topic? 0
  • +

Replies To: How to remove horizontal scroll bar in div

#2 ahmad_511  Icon User is offline

  • MSX
  • member icon

Reputation: 131
  • View blog
  • Posts: 722
  • Joined: 28-April 07

Re: How to remove horizontal scroll bar in div

Posted 01 February 2008 - 02:01 AM

Hi
Try.
overflow:hidden;


Was This Post Helpful? 0
  • +
  • -

#3 smcirish  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 13-July 09

Re: How to remove horizontal scroll bar in div

Posted 13 July 2009 - 02:39 PM

View Postahmad_511, on 1 Feb, 2008 - 01:01 AM, said:

Hi
Try.
overflow:hidden;




How can I hide the horizontal, but keep the vertical scrollbar?

-smc

Was This Post Helpful? 0
  • +
  • -

#15 RPGonzo  Icon User is offline

  • // Note to self: hmphh .... I forgot
  • member icon

Reputation: 151
  • View blog
  • Posts: 954
  • Joined: 16-March 09

Re: How to remove horizontal scroll bar in div

Posted 13 July 2009 - 02:50 PM

overflow-x: hidden; <- for horizontal scrolling
overflow-y: auto; <- for vertical scrolling



and just set the value according to what you want ... auto,scroll,hidden so forth
Was This Post Helpful? 2

#16 vishnuteja84  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 22-July 09

Re: How to remove horizontal scroll bar in div

Posted 22 July 2009 - 06:42 AM

Thank you so much .. I was trying to get rid of the scroll bar and this works amazing!!
Was This Post Helpful? 0
  • +
  • -

#17 Guest_Jaat*


Reputation:

Re: How to remove horizontal scroll bar in div

Posted 25 March 2010 - 12:01 AM

Thanks i was use this code & solve the problems
THANKS
Was This Post Helpful? 0

#18 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5411
  • View blog
  • Posts: 27,423
  • Joined: 10-May 07

Re: How to remove horizontal scroll bar in div

Posted 25 March 2010 - 12:08 AM

Awesome, glad to hear that you got it working :^: :^:
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1