Join the forums now, and start posting to receive access to our Scripts Vault!
This article describes the CSS3 calc() value. This feature hasn’t landed yet in any Firefox tree but work to implement it is underway.Firefox will support the CSS calc() value, which lets you compute a length value using an arithmetic expression. This means you can use it to define the sizes of divs, the values of margins, the widths of borders, and so forth.
I can send you pics of my cocks if you want reference.
CoolIn like 50 years CSS could actually become a reasonable language and we won't need projects like LESS CSS etc.I just read HTML5 is to be finished in 2022 ... I don't know... everything in IT developes so fast but web progress seems so rigid to me
/** Two divs aligned, split up by a 1em margin*/#a { width:75%; margin-right: 1em;}#b { width: -moz-calc(25% - 1em);}
div{ width: 50%; height: calc(3 * ew / 4);}
/*just pretend*/#redBox{height:50%; width:calc(#blueBox.width - 2em);
div{ width = 100%; height = 0.75ew;}
Since we're taking theoreticals here, imagine if you could grab values from other elements (without using javascript)...
I personally think this is great, as we can now make truly fluid layouts for those who are javascript-handicapped.
Erm... I don't know about you, but I'm not really expecting to see any browsers released which support CSS3, but not Javascript. (Are there any now that support CSS (any version), but not js?)
Anything that lets you do the same thing with less JavaScript is good in my book.