W3C home > Mailing lists > Public > www-style@w3.org > February 2011

RE: CSS Variables

From: Alex Mogilevsky <alexmog@microsoft.com>
Date: Tue, 8 Feb 2011 18:35:38 +0000
To: "Linss, Peter" <peter.linss@hp.com>, "L. David Baron" <dbaron@dbaron.org>
CC: Tab Atkins Jr. <jackalmage@gmail.com>, www-style list <www-style@w3.org>
Message-ID: <D51C9E849DDD0D4EA38C2E539856928411E6DAFA@TK5EX14MBXC213.redmond.corp.microsoft.com>
You can do the second one with $ too:

@var $a px;
@var $b 200;		p { width: $b$a; }	

-----Original Message-----
From: www-style-request@w3.org [mailto:www-style-request@w3.org] On Behalf Of Linss, Peter
Sent: Tuesday, February 08, 2011 10:19 AM
To: L. David Baron
Cc: Tab Atkins Jr.; www-style list
Subject: Re: CSS Variables

What about:
@var $a px;		p { width: 100$a; }
or (I don't see how to do it with the '$' syntax):
@var b 200;		p { width: var(b)px; }
Received on Tuesday, 8 February 2011 18:36:13 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:37 GMT