- From: R.J.Koppes <rikkert@rikkertkoppes.com>
- Date: Tue, 7 Dec 2004 14:21:24 +0100
- To: <www-style@w3.org>
Bear in mind that classes are not meant to "define a style" a class can only be a hook, to add a style to, as well as you could hook up a style to any specific attribute. (furthermore, you are using id selectors in your example, but I guess you know). Rikkert Koppes ----- Original Message ----- From: "Sander van Dragt (by way of Bert Bos <bert@w3.org>)" <svandragt@s82.nl> To: <www-style@w3.org> Sent: Friday, November 26, 2004 7:51 PM Subject: assigning multiple classes to achieve multiple backgrounds ? > > > I might be overlooking a obvious problem, but why does the background > property need multiple image values when instead we can already assign > multiple classes to a html tag? > > <style type="text/css" media="screen"> > #north {background: url(north.png) no-repeat 0% 50%;} > #east {background: url(east.png) no-repeat 50% 100%;} > #south {background: url(south.png) no-repeat 100% 50%;} > #west {background: url(west.png) no-repeat 50% 0%;} > </style> > > <div class="north east south west"> > [...] > </div> > > There would be a problem with the fact that in current specifications > the backgrounds would cancel each other out, so perhaps one would need > to add a new background-attachment property named 'overlay' in > addition to scroll and fixed (so north overlays east overlays south > overlays west). However this would seem a very elegant solution. > Perhaps I've missed some obvious problem with this technique though.. > > -- > Best regards, > Sander van Dragt > > Poetry is the language in which man explores his own amazement. > Christopher Fry > >
Received on Tuesday, 7 December 2004 14:06:59 UTC