For those of you working with relative font-sizes in your CSS, here is a basic equation for getting the exact size equivalent in ems, given a desired px value:
emr = pxt ÷ pxp, where
emr = result font size, in ems;
pxt = target font size, in px;
pxp = parent element’s font size, in px;
Continue reading ‘Simple Relative Font Size Equation’
If you’ve ever had trouble establishing a naming standard for your CSS classes, or if you work closely with a developer who demands uniformity when assigning IDs elements, here are some conventions (as well as some of my personal preferences on usage) that should help you form effective, easy-to-remember and predictable names.
Continue reading ‘Forming Effective CSS Classes & IDs’
Recent Comments