Found 6710 Articles for Javascript

Set Outset border with CSS

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

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

How to set the CSS margin properties in one declaration?

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

304 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          

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

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

The set border that looks as though it is carved into the page

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

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

Set a border between two lines with CSS

Lakshmi Srinivas
Updated on 03-Feb-2020 06:31:20

297 Views

Use the border-style property with double value to set a border with two lines. 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 with two solid lines.          

Usage of border-top-width property in CSS

Ankith Reddy
Updated on 03-Feb-2020 06:13:15

58 Views

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

Change the color of the left border with CSS

karthikeya Boyini
Updated on 03-Feb-2020 06:17:59

175 Views

The border-left-color property changes the color of the left border. You can try to run the following code to implement the border-left-color property:Example                    p.demo {             border:3px solid;             border-left-color:#FF0000;          }                              Example showing border left color property          

Set the right margin of an element with CSS

George John
Updated on 03-Feb-2020 06:23:19

211 Views

The margin-right property is used to set 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 marginExample                                     Cricket crazy nation India!                                 Cricket crazy nation Australia!                

Advertisements