I'm new to the use of em. I've always used px so far but it's time to move on. I'm stuck with my headers. I've got an H2 and an H6 with the same styling
font-size:1.2em; line-height:1.2em; When I put both headers in the same parent element they are displayed in a different size. How is that possible? Are they relative to the parent or are they relative to the default font-size of themselves.
!important;.. This will override the default values..!important...emquantities are relative to the element's own font size, except if used on its own font size in which case it's relative to its parent's font size.