How to change a heading size relative to its default size?
Firstly, please excuse my ignorance of CSS - I am mostly a back-end coder!
To illustrate what I am asking, I have included the following markup:
I know what I mean ... I hope I have explained myself clearly enough!
Actually the 120% are relative to the font size of a parent element with font size, in this case the (default) body font size.
You can’t specify a size relative to a default font size of an element unless it’s a child thereof. So, h1.bigger would only be 120% of the usual h1 if it was itself a child of h1. But that’s not valid HTML. So, you’ll always have to specify those sizes as absolute ones (or, relative to the body or any parent element with font size, respectively), when compared to each other.
Simply use font-size in pixcel and not in percent which will be very easy to manage the size of the parent class font size.
|All times are GMT +1. The time now is 03:26 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.