473,509 Members | 2,863 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 1264
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;">discussions</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
16002
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...
14
5393
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...
13
7272
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...
2
1556
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...
3
7413
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...
6
1526
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...
2
2944
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...
2
1561
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...
5
1806
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...
0
7347
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,...
0
7416
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...
1
7073
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...
0
7506
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...
0
5656
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,...
1
5062
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
3207
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1571
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 ...
1
779
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.