CSS Articles

Page 128 of 130

CSS max-height property

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 04-Mar-2020 119 Views

The max-height property is used to set a maximum height that a box can be. The value of the max-height property can be a number, a length, or a percentage.Example This paragraph is 400px wide and max height is 10px This paragraph is 400px wide and max height is 10px This paragraph is 400px wide and max height is 10px This paragraph is 400px wide and max height is 10px

Read More

CSS line-height property

karthikeya Boyini
karthikeya Boyini
Updated on 04-Mar-2020 128 Views

The line-height property is used to set the height of a line of text. The value of the line-height property can be a number, a length, or a percentage.Example This paragraph is 300 pixels wide and 100 pixels high and here line height is 50 pixels.

Read More

CSS width property

Samual Sam
Samual Sam
Updated on 04-Mar-2020 127 Views

The width property is used to set the width of a box. They can take values of a length, a percentage, or the keyword auto. You can try to run the following code to set width −Example This paragraph is 200pixels wide and 50 pixels high

Read More

CSS height property

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 04-Mar-2020 121 Views

The height property is used to set the height of a box. They can take values of a length, a percentage, or the keyword auto. ExampleYou can try to run the following code to set height − This paragraph is 200pixels wide and 50 pixels high

Read More

Set outline style as a solid single line with CSS

karthikeya Boyini
karthikeya Boyini
Updated on 04-Mar-2020 111 Views

To set the outline style as a solid single line, use the outline-style property with the value solid −Example This text is having 3px solid outline.

Read More

Set outline style as ridge with CSS

Ankith Reddy
Ankith Reddy
Updated on 04-Mar-2020 226 Views

To set the outline style as ridge, use the outline-style property with the value ridge. Under groove, the outline looks as though it is carved into the page. The ridge value is the opposite. Example This text is having 3px ridge outline.

Read More

Set outline style as a groove with CSS

Samual Sam
Samual Sam
Updated on 04-Mar-2020 278 Views

To set the outline style as a groove, use the outline-style property with the value groove. Under groove, the outline looks as though it is carved into the page.− Example This text is having 3px groove outline.

Read More

Set the width, line style and color properties for an outline in a single statement with CSS

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 04-Mar-2020 235 Views

The outline property is a shorthand property that allows you to specify values for multiple properties such as width, line style, and color of the outline.Example This text is having thin solid freen outline. This text is having thick dashed green outline.

Read More

Set the color of the outline with CSS

Ankith Reddy
Ankith Reddy
Updated on 04-Mar-2020 95 Views

The outline-color property allows you to specify the color of the outline. Its value should either be a color name, a hex color, or an RGB value, as with the color and border-color properties.ExampleYou can try to run the following code to implement outline-color property − This text is having thin solid blue outline.

Read More

CSS outline property

Samual Sam
Samual Sam
Updated on 04-Mar-2020 145 Views

The outline property is a shorthand property that allows you to specify values for multiple properties such as color, style, width of outline. Example This text is having thin solid freen outline. This text is having thick dashed green outline.

Read More
Showing 1271–1280 of 1,299 articles
Advertisements