Web Hosting Directory | Web Hosting Resources | Webmaster Resources | Domain Tools | Search Engine Marketing | Forums
  Signup
Today: 1,260   Yesterday: 1,015   Max: 1,872   Total: 464,313   Current Users : 13 (Member 0) 
DOMAIN TOOLS

WEBMASTER TOOLS

RELATED ARTICLES

SUBMIT AN ARTICLE

Write for us and get publicity, link to your website, and best of all get paid. Please visit our writers page for details.


LINK TO US

Link to us and earn points for each visitor you bring to us. Please visit our link partner page for details.

 

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.php">
     <FRAME SRC="mwMiddle.php" MARGINWIDTH=1>
     <FRAME SRC="mwBottom.php" MARGINWIDTH=50>

<NOFRAMES>NOFRAMES stuff
</NOFRAMES>

</FRAMESET>

this page
<FRAMESET COLS="33%,33%,*">
     <FRAME SRC="mhLeft.php">
     <FRAME SRC="mhCenter.php" MARGINHEIGHT=1>
     <FRAME SRC="mhRight.php"  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. Written by Miko Sullivan.

 
 
 
What is your major source of website traffic?
 
 
 
 
 
 

ADVERTISEMENT

 
Cheap Web HostingBudget Web HostingEcommerce Web Hosting
Link to UsLink ExchangeAdvertisePrivacy PolicyTerms Of ServiceAbout UsContact UsSitemap
Copyright © 2006 - 2008 Broadband Media, Inc. All rights reserved.