stylus - Css calculated amount -


how set both width , height based on proportions of width. here's i'm talking about:

.foo    height: total_width * 0.10    width: 10% 

if set height: 10% calculate based on 100% height, , want have height 10% of 100% width

if it's not possible css possible in stylus?

something can possible using viewport units: vh, vw, vmin, , vmax. older browsers not support these , if functionality critical can use appropriate shim (see http://html5polyfill.com/).


Comments

Popular posts from this blog

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

java - Getting exception in JDBC thin driver -