Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Attributes for <FRAMESET ...>
COLS = integer
ROWS = integer

Usage Recommendation
thumbs up use it

COLS and ROWS establish the quantity and sizes of the columns and rows in a frameset. The value for each attribute is a comma separated list of sizes (in pixels or percents). For example, you might use this code for a set of frames that has two rows and three columns:

this code produces this
<FRAMESET ROWS="80%,20%" COLS="60%,20%,20%">
     <FRAME SRC="rowcol1a.html">
     <FRAME SRC="rowcol1b.html">
     <FRAME SRC="rowcol1c.html">
     <FRAME SRC="rowcol1d.html">
     <FRAME SRC="rowcol1e.html">
     <FRAME SRC="rowcol1f.html">

<NOFRAMES>NOFRAMES stuff
</NOFRAMES>

</FRAMESET>

this page

The ROWS attribute says that the first row should be 80% of the height of the window and the second row should be 20%. The COLS attribute says that the first column should be 60% of the width of the window, the second column 20%, and the third another 20%.

If you leave out either ROWS or COLS, that indicates that there should be just one column or one row:

this code produces this
<FRAMESET ROWS="80%,20%">
this page

If you use an asterisk ("*") in place of a number, that says "use whatever is left over". If more than one asterisk is used then the remaining space is divided evenly. In the next example, the ROWS attribute says that the first row is 80% of the window height, the second is whatever is left. The COLS attribute says to that the first column is 60% of the width of the window, the other two columns split the rest evenly:

this code produces this
<FRAMESET ROWS="80%,*" COLS="60%,*,*">
this page

If you use only asterisks then everything is spaced evenly. The next example produces six frames that are all the same width and all the same height (i.e., all the same size):

this code produces this
<FRAMESET ROWS="*,*" COLS="*,*,*">
this page

 
 
  Copyright 1997-2002 Idocs inc. Published under the terms of the Open Content License Design by Interspire