![]() ![]() This line insert 120 pixel space before the starting of the first line only, next lines start from the left margin This line insert 60 pixel space before the starting of the first line only, next lines start from the left margin The following examples shows how to set text indent style to an html document. Text Indenting allows us to insert a specified length before the starting line of text. In vertical alignment baseline is the default value, that aligns the text to the baseline of the parent element. In Vertical Text Alignment you can control vertical positioning within the containing element. This paragraph show how to align:justify will display. In horizontal alignment you can again align text to right, left,Ĭenter and justify. Justyfy sample : You can align Text in a document horizontally and vertically. The following example shows how to set different types horizontal alignment in an HTML document. The above statment align the text to left side of the document. ![]() In horizontal alignment you can align text to right, left, center and justify. You can align Text in a document horizontally and vertically. The following examples will introduce a variety of Text styling and their usages in your CSS designing. You can manupulate Text in an HTML document in various ways. Text-align Property Examples The text-align properties are set to right, justify, and center.Text is still playing a major part in a web page, because most of the HTML document contain text. If the direction property is set to rtl, then the text will be aligned to the right side. If the direction property is set to ltr, then the text will be aligned to the left side. If inherit is used with the root element, then the initial value for this property will be used.ĭepends on the value of the direction property. inherit - The inherit keyword is used to specify that the value for this property should be taken from the parent element. ![]() For example, the width of a line of text can be adjusted by varying the word spacing. justify - If possible, both the left and right sides are aligned by adjusting the width of the content.right - Aligns the content to the right side.left - Aligns the content to the left side. ![]() CSS Example: The text-align properties are set to right, justify, and center. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |