Timothy Adams Timothy Adams - 1 year ago 75
CSS Question

Parent font-size is being effected by child's font-size

I have some very simple code which is:

<h3>Title is here</h3>
This is the paragraph


h2 {font-size:2.3em;}
h3 {font-size:1em;}
p {font-size:0.5em;}

Despite my font-size being set to different numbers in the CSS, the
always ends up using the
font-size. I know you're probably saying, just put the
tag on the outside! But I can't. Not allowed in this case. What's going on?

Answer Source

By defining the font-size with px and adding !important to the end, everything was fixed.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download