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.
|
|