Monday, December 12, 2011

When writing a font size for HTML, how do you write font size and leading together?

If you are adding type to an HTML entry, how do you add leading to the font size distinction?When writing a font size for HTML, how do you write font size and leading together?
I don't think you can control leading in HTML.

But even if you could, I would still recommend using CSS instead.



Here's how you would do it in CSS:



%26lt;style%26gt;

p {

font-size: 1.2em;

line-height: 1.5em;

}

%26lt;/style%26gt;



Everything in { } are all the styles that will be applied. You can put any number of properties together in there.



The 'p' selector means that all the styles in the { } will apply to everything you have in the %26lt;p%26gt;...%26lt;/p%26gt; element on your page. This selector doesn't have to be a %26lt;p%26gt; but any element or named item.



Font-size is obvious, and line-height is the property name for leading.
  • disable desktop
  • remove acne scars from
  • No comments:

    Post a Comment