473,659 Members | 3,117 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Scrolling a page

3 New Member
hi...
i have just started with web pages designing using ASP. I have created a horizontal menu in my header. What i want is, if the window is made smaller, ONLY the HORIZONTAL SCROLLBAR should appear....and VERTICAL SCROLLBAR SHOULD NEVER appear!

i know that i have to use ---> scrolling = "yes / no /auto"...but for this situation, how to define the scrolling attribute for this frame!

please help!!

shankar
Jun 15 '07 #1
4 1273
jhardman
3,406 Recognized Expert Specialist
shankar,

This is really more of an HTML question. The general consensus is that vertical scrolling is more desirable than horizontal, so I'm not sure I've ever heard this problem discussed.

One cheat is to place a spacer gif <img src="spacer.gif " height="0" width="450" alt=""> at the top of the page. This will force the page to offer horizontal scrolling if the window is shrunk to less than 450px wide (this number is of course easily changed). The w3c has recommended that developers not use spacer gifs since they interfere with text-only browsers, but I think that when you use them for visual positioning, who cares?

Anyway, a better fix is to use css absolute positioning of your menu items. I think most browsers will interpret that correctly and not make your page too narrow when the browser window is shrunk.[html]<li style="position :absolute; top: inherit, left 125px;">topics</li><li style="position :absolute; top: inherit, left 205px;">discuss ions</li>[/html] Let me know if this helps.

Jared
Jun 15 '07 #2
drhowarddrfine
7,435 Recognized Expert Expert
Well, there is no need for spacer gifs anymore. Just set the width of the element to whatever you want and/or use margins and padding with css.

In any case, he mentions frames and I don't know what the situation is there.
Jun 15 '07 #3
jhardman
3,406 Recognized Expert Specialist
Well, there is no need for spacer gifs anymore. Just set the width of the element to whatever you want and/or use margins and padding with css.
I'd like to agree with you, but it still seems to me that width is one of those attributes not well supported.
In any case, he mentions frames and I don't know what the situation is there.
hmm, now that you mention it, you got me there. I thought frame sizes were pretty concrete. guess I didn't notice that the first time.

Jared
Jun 15 '07 #4
drhowarddrfine
7,435 Recognized Expert Expert
Nah. Width works fine. It's min-width/max-width that IE has problems with.
Jun 15 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
16020
by: Steve Belanger | last post by:
Has anybody heard or figured out a way to make a DIV with overflow: scroll to look the same in IE and Firefox in IE i have one table splitted in two, the bottom part is the scrolling (Set to a height of 100%), it displays properly.. But firefox hardly produce the scrollbars on that division, and instead makes the whole page to scroll. I know there is some incompatibility between the two browsers as far as following the CSS standards,...
14
5412
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...
13
7292
by: al jones | last post by:
I guess one question at a time will work better. URL http://aljones.us (yes, I'm back again) I'd like to cause this whole page to fill the viewable window if I can. Meaning that I'd like the entire page to be visible on the current users screen. That means that I'd like one or both of the divs to scroll. I've found how to do that, I think, but can't seem to 'size' the page so it fits on
2
1565
by: Paul | last post by:
Hi I have a page broken into two sections, the first top section is selection criteria for my datagrid. The second section is the actual datagrid. I would like the selection criteria section to stay on the page at all times when scrolling. I know this can be done with frames, but I believe using frames with asp.net is a big pain, is there another way to have a non-scrolling section on a page?
3
7420
by: venky | last post by:
I have a question. In asp.net page, how do u scroll to particular position in a page. I have a button at the end of my page, when i click the button, i do some validation and if the validation fails, i want to scroll to particular postition in the page. Instead the page stays in the same place where the button is. any idea or inputs on scrolling?
6
1543
by: Jon Paal | last post by:
an excellent working solution for scrolling tables appears at this link http://www.litotes.demon.co.uk/example_scripts/tableScroll.html author has no contact page, but I have a question about the display of the table. the top left corner in the table grid is hidden from being displayed. I have tried to figure out where it is being hidden but can't find the code to allow it to be shown as part of the left frozen column. can anyone...
2
2955
by: P2P | last post by:
Hi I am wondering if someone know of a free cross-browsers vertical scrolling script that - is cross cross-browsers - will call the scrolling content from an external html page or from a url page
2
1566
by: Gaetan | last post by:
I have some log data maintained in a DB that I would like to display on a web page. Some rows of the DB table are wider than the web page therefore horizontal scrolling will be required to view the data. I cannot use a ListBox web control since it does not support horizontal scrolling. In ASP.Net 2.0, what type of web control can I use to allow horizon scrolling of rows larger than the web page? PS, some article on the web indicates...
5
1817
by: stan | last post by:
This is a follow-up to an earlier posting - this time with sample code. In the code below, the jump within the div causes movement within the div and as well withing the page as a whole. I am looking for a way to restrict movement, triggered by the jump, to the area within the div only. Here is the code. <html>
0
8428
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8335
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
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...
1
8528
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
7356
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...
1
6179
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5649
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
4175
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...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.