I have been considering developing a UI toolkit that offers an intuitive and powerful way of setting the position and size of elements/widgets. Here are some examples of how it could be used (although they are not currently implemented):
ui("Panel").size(". 40").pos("0 0").attach(element);
ui("Textarea").size(". %-10").pos("0 40").attach(element);
ui("Panel").size(". 10").pos("0 bottom+5");
In this context, .
represents auto
, %
represents 100%
, with the option to add pixels to percentages.
Is there anything like this already available, maybe as a jQuery plugin or a similar tool? Some design requirements may not be achievable using only CSS.