[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: Web page margins
- From: Denis Barbier <nospam@thanx>
 
- Date: Mon, 9 Jul 2001 17:23:36 +0200
 
On Mon, Jul 09, 2001 at 03:41:50PM +0200, Jan Holler wrote:
> 
> 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.
Hi,
no attributes should be added by default since this breaks HTML
standards compliance.
-- 
Denis Barbier
WML Maintainer
______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com