1.

CSS Text Styling

Answer»
COMMANDDESCRIPTIONSYNTAX 
Font styleIt sets the font style. We can set our text as normal, bold, italic, oblique as per our requirement font-style: normal | italic | oblique
Font VariantIt sets the font variation. We can set the variant of the font as uppercase or lowercase, small-caps etc as per required by the user.  font-variant: normal | small-caps
Font WeightSets the font weight. It helps us to set the weight of the font as normal, bold,  bolder lighter and we can also set it in numerics. font-weight: normal | bold | bolder | lighter | 100 - 900
Vertical AlignmentSets the alignment i.e. where text is shown. It will help to adjust our text where it will appear. vertical-align: baseline | 10px | sub | super | top | text-top | middle | bottom | text-bottom | initial
Text TransformIt sets how text is written. It will define the text as uppercase, lowercase or capitalized. text-transform: capitalise | lowercase | uppercase
Font SizeIt sets the font size. It helps us to define the size of our font to make our web page more attractive. font-size: 12px | 0.8em | 80%
Space Between CharactersIt defines the space between characters. It helps to adjust the spacing between two characters. letter-spacing: normal | 4px
Line HeightIt sets the height of the line. It defines the height of the line. line-height: normal | 3em | 34%
Horizontal AlignmentSets the horizontal alignment of the content. It helps to align the text horizontally whether it is left, right, centre or align. text-align: left | right | center | justify
Text Align LastThe text-align-last CSS property specifies how the last line of a block or line should be oriented before a forced line break. text-align-last: auto | left | right | center | justify | start | end | initial | inherit
Text DecorationText-decoration-line, text-decoration-color, text-decoration-style, and the newer text-decoration-thickness are all shorthand for this property. text-decoration: none | underline | overline | line-through
Indent First Line The indentation of the initial line in a text block is controlled by the text-indent attribute. text-indent: 25px
Font FamilySets the font family of the text by linking the font families from google to the HTML. font-family: 'Open Sans', sans-serif
Text JustifySpecifies the justification method of text when text-align is set to "justify". text-justify: auto | inter-word | inter-character | none
Text OverflowSets how hidden overflow content is signalled to the user. text-overflow: clip | ellipsis | string | initial | inherit
Text ShadowSets the shadow of text in any direction. text-shadow: h-shadow v-shadow blur-radius color | none | initial | inherit



Discussion

No Comment Found