[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
RE: Web page margins
- From: Jan Holler <nospam@thanx>
- Date: Mon, 09 Jul 2001 15:41:50 +0200 (CEST)
On 09-Jul-01 Alvise Belotti wrote:
> If you prefer setting this margin to 0, you have tu put
> something like MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0
> inside <body> (NS and IE behaves differently in this respect, obviously :-).
> The problem lies in that if you put that instructions inside <page> they are
> silently discarded.
I patched info.wml (wml 1.74):
In the fist part you could add:
<preserve marginwidth>
<preserve marginheight>
Inside <body ....> you add:
<if <get-var marginwidth> " marginwidth=\"<get-var marginwidth>\" \
leftmargin=\"<get-var marginwidth>\"" "leftmargin=\"8\"">\
<if <get-var marginheight> " marginheight=\"<get-var marginheight>\" \
topmargin=\"<get-var marginheight>\ "" " topmargin=\"8\"">\
Near the end you should add, when preserved before.
<restore marginheight>
<restore marginwidth>
I have put an 8 pixel default margin for Explorer so that it displays
the same margins as Netscape if not set by the user.
Cheers!
-jan
--
Holler iNetCom
http://www.inetcom.ch/ tel: +41 31 3725450 fax: 51
zinggstr. 16, 3007 bern, schweiz
postanschrift: postfach, 3000 bern 23
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com