Click to See Complete Forum and Search --> : Complete newbie question


nandita
May 9th, 2002, 12:58 AM
Hi,
I have just started with HTML,
I have a page with 2 frames in it, I want their widths to be fixed, this means that if I resize my explorer window, I need horizontal scroll bars to appear automatically.
I treid with the % option in frameset, also with the actual pixel size but does not seem to work.
I have set scroll as auto, but that seems to affect the vertical scroll bars.
I want to use just HTML...how do I do this?

Thanks !

Andreas Masur
May 9th, 2002, 04:50 AM
This is the basic version for dividing the screen as follows:

- 250 pixel width for the left
- Rest for the right

<html>
<head>
...
</head>
<frameset cols="250, *">
<frame src="left.html">
<frame src="right.html">
</frameset>
<body>
...
</body>
</html>



There are of course other options for setting borders etc. but I think you get my point...

Ciao, Andreas

"Software is like sex, it's better when it's free." - Linus Torvalds

goddess_spanky
May 9th, 2002, 10:36 AM
You can add the following attributes to the FRAMESET tag to either enable to disable scrolling:

<FRAMESET SCROLLING="AUTO">

you can also use "yes" or "no" depending on if you want the scroll bars to always be visible or never be visible.

~goddess
goddess_spanky@hotmail.com

nandita
May 9th, 2002, 07:34 PM
Hi,

Thanks for your replies, but my code already looks like what Andreas has given, here it is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Client</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=EUC-JP">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 6.5.0.0 for Windows">
<META http-equiv="Content-Style-Type" content="text/css">
</HEAD>
<FRAMESET cols="250,*">
<FRAME src="MainMenu.html" Align="left" name="menu" scrolling="auto" noresize="yes">
<FRAME src="SubMenu.html" Align="left" name="submenu" scrolling="auto",noresize="yes">
<NOFRAMES><P>You do not have frames enabled</P></NOFRAMES></FRAMESET>
</HTML>


Now in the right frame I have a lot of buttons, labels etc , which maybe 3-4 in one line.
If I resize my browser, the label/button on the far right sort of rolls back onto the next line, and I do not get a horizontal scroll bar.

What else do I need to do?