Professional Documents
Culture Documents
CSS Text
CSS Text
CSS Text
direction: rtl;
<p class="ex1"><bdo dir="rtl">This is right-to-left text direction.</bdo></p>
8. The word-spacing property is used to specify the space between the words in a text.
word-spacing: 10px; word-spacing: -5px;
9. The text-shadow property adds shadow to text.
The following example specifies the position of the horizontal shadow (3px), the position of the vertical
shadow (2px) and the color of the shadow (red):
text-shadow: 3px 2px red;
hidden;}
p.mix {border-style: dotted dashed solid double;}
2. The border-width property can have from one to four values (for the top border, right border,
bottom border, and the left border).
The width can be set as a specific size (in px, pt, cm, em, etc) or by using one of the three pre-defined
values: thin, medium, or thick.
border-width: 5px; border-width: medium; border-width: 2px 10px 4px 20px;
3. border-color property is used to set the color of the four borders.
border-color is not set, it inherits the color of the element.
border-style: solid;
border-color: red green blue yellow;
4. Border – individual sides
p{
border-top-style: dotted;
border-right-style: solid;
border-bottom-style: dotted;
border-left-style: solid;
}
or
border-style: dotted solid;or border: 5px solid red; (combined style short hand property) or border-left:
6px solid red;
5. border-radius property is used to add rounded borders to an element
border-radius: 12px;