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 implement text-align property: This will be right aligned. This will be center aligned. This will be left aligned.
Use the text-indent property to indent the first line of a paragraph. Possible values are % or a number specifying indent space.ExampleYou can try to run the following code to indent the first line: 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.
Use the text-shadow property to set the shadow around a text. You can try to run the following code to learn how to set the shadow around the text in CSS:Example If your browser supports the CSS text-shadow property, this text will have a green shadow.
To decorate a text in CSS, use the text-decoration property. The following example demonstrates how to decorate a text. Possible values are none, underline, overline, line-through, blink. This will be underlined This will be striked through. This will have a over line. This text will have blinking effect
The border property is used to set the width of an image border. This property can have a value in length or in %. A width of zero pixels means no border.ExampleYou can try to run the following code to set the width of image border:
To set the whitespace between text, use the white-space property. Possible values are normal, pre, nowrap.ExampleYou can try to run the following code to set the whitespace between text in CSS: This text has a line break and the white-space pre setting tells the browser to honor it just like the HTML pre tag.
Suppose we have a triangle. We have to find the minimum path sum from top to the bottom. In each step we can move to adjacent numbers on the row below.For example, if the following triangle is like[ [2], [3, 4], [6, 5, 7], [4, 1, 8, 3] ]The minimum path sum from top to bottom is 11 (2 + 3 + 5 + 1 = 11).Let us see the stepsCreate one table to use in Dynamic programming approach.n := size of trianglefor i := n – 2 down to 0for j := 0 to idp[j] ... Read More
Use the text-transform property to set the cases for a text. Possible values are none, capitalize, uppercase, lowercase.ExampleYou can try to run the following code to set the cases for a text: This will be capitalized This will be in uppercase This will be in lowercase
The text-shadow property is used to set the text shadow around a text.ExampleYou can try to run the following code to implement text-shadow property: Indian is a country in continent Asia.
The color property is used to set the color of text. You can try to run the following code to learn how to work with the color property in CSS:Example This text will be written in blue.
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP