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 <FRAME ...>
MARGINWIDTH = size in pixels
MARGINHEIGHT = size in pixels

MARGINWIDTH and MARGINHEIGHT control the inside margins of the document in the frame.

this code produces this
<FRAMESET ROWS="60%,*,*">
     <FRAME SRC="mwTop.html">
     <FRAME SRC="mwMiddle.html" MARGINWIDTH=1>
     <FRAME SRC="mwBottom.html" MARGINWIDTH=50>

<NOFRAMES>NOFRAMES stuff
</NOFRAMES>

</FRAMESET>

this page
<FRAMESET COLS="33%,33%,*">
     <FRAME SRC="mhLeft.html">
     <FRAME SRC="mhCenter.html" MARGINHEIGHT=1>
     <FRAME SRC="mhRight.html"  MARGINHEIGHT=50>

<NOFRAMES>NOFRAMES stuff
</NOFRAMES>

</FRAMESET>

this page

The official specifications say that MARGINWIDTH and MARGINHEIGHT should be set to values of greater than 1... 0 is not an acceptable value. Some browsers will honor margin settings of 0, while others don't.

Both Netscape and MSIE display some odd behavior with these attributes: the default for MARGINWIDTH (i.e. if you don't use it) is around 13 or 14 pixels. However, if you use MARGINWIDTH, then the default for MARGINHEIGHT changes to 1. The reverse is also true. Take a look at the pages in the examples above to see this strange behavior.

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