Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Setting Fonts using CSS

Googleplus Pint
#5
Set the font size:
Following is the example which demonstrates how to set the font size of an element. The font-size property is used to control the size of fonts. Possible values could be xx-small, x-small, small, medium, large, x-large, xx-large, smaller, larger, size in pixels or in %

<p style="font-size:20px;">
This font size is 20 pixels
</p>
<p style="font-sizeConfusedmall;">
This font size is small
</p>
<p style="font-size:large;">
This font size is large
</p>
Hasan
Reply


Messages In This Thread
Setting Fonts using CSS - by Hasan - 06-28-2018, 09:27 AM
RE: Setting Fonts using CSS - by Hasan - 06-28-2018, 09:28 AM
RE: Setting Fonts using CSS - by Hasan - 06-28-2018, 09:28 AM
RE: Setting Fonts using CSS - by Hasan - 06-28-2018, 09:28 AM
RE: Setting Fonts using CSS - by Hasan - 06-28-2018, 09:28 AM
RE: Setting Fonts using CSS - by Hasan - 06-28-2018, 09:29 AM
RE: Setting Fonts using CSS - by Hasan - 06-28-2018, 09:29 AM
RE: Setting Fonts using CSS - by Hasan - 06-28-2018, 09:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  CSS white-space Property Hasan 0 1,659 07-04-2018, 03:29 AM
Last Post: Hasan
  CSS - Tables Hasan 2 1,957 06-28-2018, 09:55 AM
Last Post: Hasan
  CSS - Links Hasan 1 2,291 06-28-2018, 09:47 AM
Last Post: Hasan
  CSS - Images Hasan 3 2,454 06-28-2018, 09:37 AM
Last Post: Hasan
  css text effect Hasan 9 2,668 06-28-2018, 09:34 AM
Last Post: Hasan
  Setting Backgrounds using CSS Hasan 1 1,547 06-28-2018, 03:31 AM
Last Post: Hasan
  CSS - Colors Hasan 0 1,656 06-28-2018, 03:23 AM
Last Post: Hasan
  CSS Syntax - Selectors Hasan 0 1,456 06-28-2018, 03:20 AM
Last Post: Hasan
  CSS Introduction Hasan 0 1,441 06-28-2018, 03:19 AM
Last Post: Hasan

Forum Jump:


Users browsing this thread: 3 Guest(s)