Responsive image
Responsive image

CSS Font:
Font Family:
The font family of a text is set with the font-family property.
Example:
P{font-family:”Times new Roman”}

Font style:
The font-style property is mostly used to specify italic text.
This property has here values:-

  1. Normal: The text is shown normally.
  2. Italic : The text is shown in italic
  3. Oblique: The text is “leaning” (oblique is very similar to italic, but less supported)

Example:
p.normal{ font-style: normal}
p.italic{font-style:italic}
p.oblique{font-style:oblique}


Example  HTML Code:
<p class=”normal”> This is a paragraph</p>

Font size setting the text size with pixels, gives you full control over the text size:
Example:
p{ font-size:36px}

Css border:
The CSS border properties define the border around an element.
Example:
p.one
{
Border-style:solid;
Border-width:5px;
}
P.two
{
Border-style:solid;
Border-width:medium;
Border-color:#98bf21;
}


In HTML:
<p class=”one”>………………..</p>
<p class=”two”>……………………</p>



Post Your Comment Here