W3C home > Mailing lists > Public > www-style@w3.org > March 2015

[css3-calc()] variable name for static value

From: Vikas Yadav <vayrsr@gmail.com>
Date: Mon, 02 Mar 2015 09:32:51 +0000
Message-Id: <9CC5A19E-B053-44E1-B370-99239418C47A@gmail.com> (sfid-20150302_093258_324819_FD4E7A9A)
To: "www-style@w3.org" <www-style@w3.org>
Css style:
Div{width:calc(100%-20px);}
But problem arise here when we use number of tag with calc(). I will change the parent width it automatically adjust but when use a static value in place of percentage. Change every where. Where use calc() method but you forget in one place that will be no affect here but layout will be affected so much. You find the problem and correct it but another alter native solution to defined variable with value. Use variable name to place value so change in one place and affect in all place.I will recommend of that because website layout is relative and no need to defined static height and width

Sent from my iPhone
Received on Monday, 2 March 2015 12:12:14 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:29 UTC