473,734 Members | 2,647 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do you disable horizontal scrolling?

Hi,

Is it possible to disble horizontal scrolling using CSS? I want to try
and use two backgrounds, one tiling vertically and part of the body
background, which will not force scrolling, but one that will be part
of a table stretching of to the right, which will force unwanted
horizontal scrolling. How is this written in the stylesheet? Cheers

Burnsy
Jul 20 '05 #1
4 19572
bi******@yahoo. co.uk (mr_burns) wrote:
Is it possible to disble horizontal scrolling using CSS? I want to try
and use two backgrounds, one tiling vertically and part of the body
background, which will not force scrolling, but one that will be part
of a table stretching of to the right, which will force unwanted
horizontal scrolling.


You're not making any sense, post a url.

Note that you may not like what we have to say about it though.

--
Spartanicus
Jul 20 '05 #2
On 24 Aug 2004 17:48:30 -0700, mr_burns <bi******@yahoo .co.uk> wrote:
Hi,

Is it possible to disble horizontal scrolling using CSS? I want to try
and use two backgrounds, one tiling vertically and part of the body
background, which will not force scrolling, but one that will be part
of a table stretching of to the right, which will force unwanted
horizontal scrolling. How is this written in the stylesheet? Cheers


If the page requires horizontal scrolling and you disable it, then content
could be lost. I don't advise this approach.

It's possible to do 2 backgrounds, you'll need to nest a div with the
second background just inside the element with the first background. Do
not do backgrounds in the HTML, they aren't content. Set background:
#COLOR url(image.jpg) repeat-x top left; or whatever it takes to do what
you want.

I've not tested it, but I imagine a background image with transparency
will reveal a background set on a parent element.
Jul 20 '05 #3
bi******@yahoo. co.uk (mr_burns) wrote in
news:65******** *************** **@posting.goog le.com:
Hi,

Is it possible to disble horizontal scrolling using CSS?


Yes. Use HTML for markup, and CSS to create a flexible design.

--
Dave Patton
Canadian Coordinator, Degree Confluence Project
http://www.confluence.org/
My website: http://members.shaw.ca/davepatton/
Jul 20 '05 #4
DU
mr_burns wrote:
Hi,

Is it possible to disble horizontal scrolling using CSS? I want to try
and use two backgrounds, one tiling vertically and part of the body
background, which will not force scrolling, but one that will be part
of a table stretching of to the right, which will force unwanted
horizontal scrolling. How is this written in the stylesheet? Cheers

Burnsy


What is it with people always trying to remove scrollbars?

If content, your content, overflows current (or your requested) window
dimensions, then removing on purpose generated scrollbars will remove

1- the normal, standard and default ability to access overflowed
content. You're depriving the user from reaching, from accessing your
content.

2- the visual feedback by which the user can see that there is more
content than his window can show. So, removing scrollbars, preventing
them from appearing removes the info that there is more content to be
reached. Maybe users would use the mousewheel or PgDn if they knew there
was more content after all...

In the last 20 years, I know of no document-based application which was
created in which the developers decided to remove scrollbars in the
intent, goal, purpose of making it harder for users, readers to reach
overflowed content, to prevent them from using scrollbars. It just
doesn't make sense.

What's so wrong with the scrollbars that your content, your page creates
in the user's window? Why can't you just control your page layout, your
content, and concentrate on these issues?

DU
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3795
by: anna | last post by:
How to tell if a horizontal scrollbar is present? I only want to use scrollTo if horizontal scrollbar is present. window.scrollbars.visibility doesn't specify which scrollbar is present, so it gives a false result if there is vertical scrollbar but not horizontal scrollbar. TIA, Anna
14
5415
by: Dave | last post by:
My web site is not particularly theme-based, but it contains an Art Gallery I'd like to display in a different perspective. I would like to horizontally scroll it, rather than vertically - as if the viewer is virtually "walking" through the gallery. I'm just attempting this to have this part of the page be different. Is horizontal scrolling okay, or will it throw our browsers into chaos and viewers into insanity? If horizontal scrolling...
3
3294
by: sumit | last post by:
Hi, I made a data grid vertically as well as horizontal scrollable as number of columns are very large!! But when i scroll horizontally then header is not visible as it also gets scrolled up,,so to tackle this i made a different data grid having only header as the row and the other datagrid contains the actual data for it,, Due to this vertical scrolling problem goes as i have put
2
1645
by: Just D. | last post by:
Anybody knows how to disable the horizontal scrolling? Really do we have any official way for that? Just D.
0
1415
by: Dan Hinsley | last post by:
I just got one of the new Microsoft Mice that has a "tilt wheel" for horizontal scrolling. This works in a listbox in my VB.NET app, but doesn't work for a datagrid that does have a horizontal scroll bar. The same datagrid works with the wheel for vertical scrolling just fine. Is there something you have to do to catch the horizontal scroll events? Dan
2
4227
by: Eduard | last post by:
I have a ASP.Net datagrid wrap in the following div: <DIV id="divPart2" style="OVERFLOW: hidden">. Another div controls the horizontal scrolling: <DIV id="scroll1" style="OVERFLOW: scroll; WIDTH: 800px; LINE-HEIGHT: 0px; HEIGHT: 17px" onscroll="javascript: document.getElementById('divPart2').scrollLeft = this.scrollLeft;"> scrolls the datagrid horizontally. When the horizontal scroll box is dragged or any of the scrollbar arrows is
3
5394
by: lolo | last post by:
hello. happy new year. I'm trying to build a website for my wife and she is adament on having a horizontal thumbnail scrolling div. great. I have a good vertical scrolling thing, but can't figure out how to make it scroll horizontally. It's probably real simple and I just can't figure it out.... Here is the code I have so far:
3
5960
by: j0rd4n | last post by:
I have a user control that needs to allow vertical scrolling but not horizontal scrolling. In the user control's resize event, I need to adjust the size of all the children controls. For this to work correctly, I need the AutoScroll to not enable the horizontal scrollbar. After researching MSDN, I found the HScroll which can be used to disable horizontal scrolling when the AutoScroll mode is enabled. However, when I disable HScroll,...
2
7693
by: seajays | last post by:
Hi - I've managed to get this site working in Firefox and IE6, without any horizontal scrolling, but for some reason IE7 is insisting on horizontal scrolling by quite a wide margin. Does anyone have any pointers on what might be going on here? Site is at: http://tinyurl.com/36oznb/ Thanks, Colin.
0
9449
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9310
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9236
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6031
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3261
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2724
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.