Margin Setting

[Total: 0    Average: 0/5]

This example shows how to set the margins for the page so that they are the same for IE and NS.

Body Code:

<body topmargin="5" leftmargin="5" marginheight="5" marginwidth="5">
<table width=100% height=100% border=1 bgcolor=red><tr><td align=center>Test Text<BR>
All the margins are set to 5 (pixels)<BR>
You need both the topmargin and marginheight - one for Netscape and one for IE to set top and bottom margins.<BR>
You need both the leftmargin and marginwidth - one for Netscape and the other for IE to set side margins.<BR>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *