[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: Web page margins



On Mon, Jul 09, 2001 at 06:03:13PM +0200, Jan Holler wrote:
> 
> On 09-Jul-01 Denis Barbier wrote:
> > On Mon, Jul 09, 2001 at 03:41:50PM +0200, Jan Holler wrote:
> >>      <if <get-var marginheight> " marginheight=\"<get-var marginheight>\" \
> >>       topmargin=\"<get-var marginheight>\ "" " topmargin=\"8\"">\
> 
> >> 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.
> 
> > no attributes should be added by default since this breaks HTML
> > standards compliance.
> 
> Yes, you're right:
> 
>       <if <get-var marginwidth> " marginwidth=\"<get-var marginwidth>\" \
>        leftmargin=\"<get-var marginwidth>\"" "">\
>       <if <get-var marginheight> " marginheight=\"<get-var marginheight>\" \
>       topmargin=\"<get-var marginheight>\ "" "">\

Okay, this is fine.
But may I suggest we talk again about `runtime' attributes?

For instance, add these 2 lines in wml::std::page
      <when <match "%attributes" :body: action=report />> </when>\
      <attributes-quote <attributes-extract :body:(.*) %attributes /> />\
after
      <if <get-var onload /> " onload=\"<get-var onload />\"" "" />\

Then one may write

  #use wml::std::page

  <page :body:marginwidth="8" :body:marginheight="8"
        :body:leftmargin="8"  :body:topmargin="8">

I would like to hear comments to improve this feature, which adds extra
flexibility by letting user add any attribute in HTML tags.

-- 
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