You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/*Calc Demo 100% Fluid Width.--The Width of element 1 is determined by the size of the container width, minus the spacing and width of element 2.Useful in a responsive, re-usable widget scenario. Since the overall size is controlled by 1 container width, but adaptable to fit in any size.*//* calc( 100% width - width of element 2)*/
.element-2 { float: left; width:calc(100%-280px); }
/*Notice how calc can also account for the additioanl spacing appled via margin-left here. */
.element-1 { float: left; width:270px; margin-left:10px; }
h/t http://vincentp.me/blog/use-cases-for-calc/
The text was updated successfully, but these errors were encountered: