Usage of Margin Bottom Property with CSS

Lakshmi Srinivas
Updated on 03-Feb-2020 06:59:50

70 Views

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

Set Top Margin of an Element with CSS

Chandu yadav
Updated on 03-Feb-2020 06:58:49

105 Views

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

Specify All List Properties in a Single Expression with CSS

Samual Sam
Updated on 03-Feb-2020 06:58:11

142 Views

The list-style property allows you to specify all the list properties into a single expression.ExampleYou can try to run the following code to list all properties like list-style, type, etc in one line:                            Laptop          Desktop System                      Laptop          Desktop System          

Set Outset Border with CSS

Samual Sam
Updated on 03-Feb-2020 06:39:20

509 Views

To set outset border with CSS, use the border-style property with value outset.Example                            This is a border with none width.                      This is outset border.          

Set CSS Margin Properties in One Declaration

George John
Updated on 03-Feb-2020 06:38:25

322 Views

The margin property defines the space around an HTML element. It is possible to use negative values to overlap content. It specifies a shorthand property for setting the margin properties in one declaration.ExampleYou can try to run the following code to set margins                            All four margins will be 20px                      Top margin will be 15px, left and right margin will be 4% of the total width of the document, bottom margin will be -10px          

Change the Style of Bottom Border with CSS

Ankith Reddy
Updated on 03-Feb-2020 06:37:53

187 Views

The border-bottom-style property changes the style of bottom border. You can try to run the following code to implement the border-bottom-style property:Example                            This is demo content          

CSS Padding Top Property

Lakshmi Srinivas
Updated on 03-Feb-2020 06:36:17

106 Views

The padding-top specifies the top padding of an element. It sets the top padding of an element. This can take a value in terms of length of %.Example                            This is a paragraph with a specified top padding                      This is another paragraph with a specified top padding in percent          

CSS padding-bottom Property

Arjun Thakur
Updated on 03-Feb-2020 06:34:14

108 Views

The padding-bottom specifies the bottom padding of an element. It sets the bottom padding (space) of an element. This can take a value in terms of length of %.Example                            This is a paragraph with a specified bottom padding                      This is another paragraph with a specified bottom padding in percent          

Set Inset Border with CSS

karthikeya Boyini
Updated on 03-Feb-2020 06:33:12

920 Views

To set inset border with CSS, use the border-style property with value inset.Example                            This is a border with none width.                      This is inset border.          

Set Border That Looks Carved Into the Page

Samual Sam
Updated on 03-Feb-2020 06:31:55

122 Views

Use the border-style property with groove value to set a border as carved into the page. You can try to run the following code to implement border-style property:Example                            This is a border with none width.                      This is a border carved into the page.          

Advertisements