Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

righmargin equivalent in netscape

Status
Not open for further replies.

influent

Programmer
Jan 11, 2001
131
US
Is there an equivalent to IE's rightmargin parameter in Netscape? I don't want to use style sheets because of the inconsistencies Netscape has with them.
 
Hi,

You can try marginwidth, it might get you the effect you're looking for.

Bye.
 
But then I have a left margin, which I don't want, unless you know a way around that.
 
Why not fake a margin by using a table?

Just enclose everything below the <body> tag in a table cell and preceed the cell with an empty one of a specified width:

<html><head><title></title></head><body>
<table>
<tr>
<td<<pre> </pre></td>
<td>(all your html code)</td>
</tr>
</table>

Just play with the spaces between the <pre></pre> tags to set the left &quot;margin&quot; width.

This will look just about the same on all browsers.
 
Me again. I forgot that you wanted a right margin, not left. Just transpose the two table cells in the above example.
 
Thanks, I might try that, though in my experience tables are nightmares, and I'm not sure if it's worth it to me to try it again (I started out with the whole page in a table and was never able to get stuff right).
 
hi there
as for my experience, right margin in netscape (at least in nn4x) is left for scrollbar, & it stays ALLWAYS!!! very annoying, you know.. it is about 16-18 px width & i &quot;got rid&quot; of it by defining the same bgcolor on the page & on my content (whatever, table or layers) Victor
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top