so after working with css for over 20 years, today i actually learned that "em" units are relative to the container they're in.
how i never learned this along the way, is anyone's guess 😅
so after working with css for over 20 years, today i actually learned that "em" units are relative to the container they're in.
how i never learned this along the way, is anyone's guess 😅
@vga256 Close. em is relative to the *font size* of the parent element or the font-size of the nearest parent with a defined font size.
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.