Found 609 Articles for Front End Scripts

How to set the CSS margin properties in one declaration?

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

207 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

666 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

66 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

181 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

65 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

127 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!                

Set border width with CSS

Lakshmi Srinivas
Updated on 03-Feb-2020 06:21:34

417 Views

The border-width property allows you to set the width of element borders. The value of this property could be either a length in px, pt or cm or it should be set to thin, medium or thick.ExampleYou can try to run the following code to set the border width with CSS:                            David Beckham is a legend.                      Sachin Tendulkar is a legend.          

Previous 1 ... 5 6 7 8 9 ... 61 Next
Advertisements