Found 6710 Articles for Javascript

Convert text to lowercase with CSS

Samual Sam
Updated on 11-Sep-2024 14:40:50

4K+ Views

To convert text to lowercase with CSS, we will be using the lowercase value of text-transform property. Example In this example, we are using text-transform property and displaying the result as before and after the conversion using p tag. #lcase{ text-transform:lowercase; } Convert Text ... Read More

Usage of direction property in CSS

usharani
Updated on 31-Jan-2020 06:03:46

81 Views

The direction property is used to set the text direction. Possible values are ltr or rtl.ExampleYou can try to run the following code to set the text direction with CSS:                            This text will be renedered from right to left          

Strikethrough text with CSS

Lakshmi Srinivas
Updated on 31-Jan-2020 06:05:18

1K+ Views

Use the text-decoration property to strikethrough text with CSS. You can try to run the following code to underline text:                            This will be striked through.          

Underline text with CSS

mkotla
Updated on 31-Jan-2020 06:06:34

1K+ Views

Use the text-decoration property to underline text with CSS. You can try to run the following code to underline text:                            India          

Align the text of a paragraph with CSS

Abhinanda Shri
Updated on 31-Jan-2020 06:04:53

488 Views

To align the text of a paragraph, use the text-indent property.ExamplePossible values are % or a number specifying indent space. You can try to run the following code to implement a text-index property with CSS:                            This text will have first line indented by 2cm and this line will remain at          its actual position this is done by CSS text-indent property.          

Usage of word-spacing property in CSS

karthikeya Boyini
Updated on 31-Jan-2020 06:04:23

57 Views

The word-spacing property is used to add or subtract space between the words of a sentence. Possible values are normal or a number specifying space. ExampleYou can try to run the following code to implement word-spacing property:                             This text is having space between words.          

Add or subtract space between the words of a sentence with CSS

Priya Pallavi
Updated on 31-Jan-2020 06:03:17

415 Views

The word-spacing property is used to add or subtract space between the words of a sentence. Possible values are normal or a number specifying space. ExampleYou can try to run the following code to implement word-spacing property.                             Asia is a continent.          

Align the text of a document with CSS

varma
Updated on 31-Jan-2020 06:02:44

92 Views

The text-align property is used to align the text of a document. Possible values are left, right, center, justify.ExampleYou can try to run the following code to align text:                            Asia is a continent.                      Asia is a continent.          

Indent the text of a paragraph with CSS

Samual Sam
Updated on 31-Jan-2020 06:02:11

258 Views

The text-indent property is used to indent the text of a paragraph. Possible values are % or a number specifying indent space.ExampleYou can try to run the following code to implement a text-indent property in CSS:                            This text will have first line indented by 2cm and this line will remain at          its actual position this is done by CSS text-indent property.          

Add or subtract space between the letters that make up a word with CSS

Nikitha N
Updated on 31-Jan-2020 06:01:27

313 Views

To add or subtract space between the letters that make up a word, use the letter-spacing property.ExampleYou can try to run the following code to implement letter-spacing property:                            Asia is a continent.          

Advertisements