Re: CSS and structure

Hi, Orion,

Your idea belongs to "object oriented " style.
My idea was in functional style.

selector1*
{
  display: inline;
}

selector2*
{
  display: block ( parameters-of-block-layout-function ) ;
}

example:
div
{
  display: block ( float:left; overflow:hidden ) ;
}

so later you can safely cascade/override display attribute and say
div
{
  display: inline;
}



Andrew Feoniouk.



>
> >>selector* {
> >>  @block {
> >>      rule-that-only-applies-to-block-elements: value;
> >>      rule-that-only-applies-to-block-elements: value;
> >>   }
> >>   rule-that-applies-to-any-element: value;
> >>}
> >
> >   You cannot select an element based on a value of a CSS property, so
this
> >would not work.
> >
> >What would happen with this?
> >@block { display: inline; }
>
> well given that the display property has been rolled into a @ block, the
> following would be ignored. Pretty simple actually. Display would no
longer
> be a rule, but rather be an @ rule.
>
> Orion Adrian
>
>

Received on Tuesday, 29 June 2004 12:29:34 UTC