Found 8591 Articles for Front End Technology

Set the maximum width that a box can be with CSS

George John
Updated on 04-Mar-2020 12:18:06

133 Views

The max-width property is used to set the maximum width that a box can be. The value of the max-width property can be a number, a length, or a percentage.Example                            This paragraph is 200px high and max width is 100px          This paragraph is 200px high and max width is 100px                

Usage of margin-right property with CSS

Lakshmi Srinivas
Updated on 04-Mar-2020 12:18:39

70 Views

The margin-right specifies the right margin of an element. It can have a value in length, % or auto. You can try to run the following code to set the right margin −Example                            This is a paragraph with a specified right margin                      This is another paragraph with a specified right margin in percent          

Create layers using CSS

Ankith Reddy
Updated on 04-Mar-2020 12:17:03

73 Views

To create layers using CSS, you can try to run the following code. I have used the the z-index propertyExample                                                    

Set the width of a box with CSS

Chandu yadav
Updated on 04-Mar-2020 12:15:08

178 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. ExampleYou can try to run the following code to set the width −                            This paragraph is 200pixels wide and 50 pixels high          

CSS min-width property

Chandu yadav
Updated on 04-Mar-2020 12:13:58

157 Views

The min-width property is used to set the minimum width that a box can be. The value of the min-width property can be a number, a length, or a percentage.Example                            This paragraph is 100px high and min width is 400px          This paragraph is 100px high and min width is 400px              

CSS max-height property

Lakshmi Srinivas
Updated on 04-Mar-2020 12:13:27

113 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                                  

CSS line-height property

karthikeya Boyini
Updated on 04-Mar-2020 12:11:45

120 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.          

CSS width property

Samual Sam
Updated on 04-Mar-2020 12:10:41

118 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          

CSS height property

Lakshmi Srinivas
Updated on 04-Mar-2020 12:09:06

115 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          

Set outline style as a solid single line with CSS

karthikeya Boyini
Updated on 04-Mar-2020 11:28:59

106 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.          

Advertisements