473,473 Members | 1,914 Online
Bytes | Software Development & Data Engineering Community
Create 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 19560
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.google.co m:
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
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...
14
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...
3
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...
2
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
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...
2
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;...
3
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...
3
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...
2
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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...

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.