Javascript Articles

Page 494 of 534

How to set the CSS margin properties in one declaration?

George John
George John
Updated on 03-Feb-2020 335 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          

Read More

Change the style of bottom border with CSS

Ankith Reddy
Ankith Reddy
Updated on 03-Feb-2020 194 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          

Read More

CSS padding-top property

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 03-Feb-2020 111 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          

Read More

CSS padding-bottom property

Arjun Thakur
Arjun Thakur
Updated on 03-Feb-2020 114 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          

Read More

Set Inset border with CSS

karthikeya Boyini
karthikeya Boyini
Updated on 03-Feb-2020 947 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.          

Read More

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

Samual Sam
Samual Sam
Updated on 03-Feb-2020 128 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.          

Read More

Set a border between two lines with CSS

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 03-Feb-2020 323 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.          

Read More

Change the width of the bottom border with CSS

karthikeya Boyini
karthikeya Boyini
Updated on 03-Feb-2020 227 Views

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

Read More

Set the right margin of an element with CSS

George John
George John
Updated on 03-Feb-2020 248 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!                

Read More

Set border width with CSS

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 03-Feb-2020 421 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.          

Read More
Showing 4931–4940 of 5,338 articles
« Prev 1 492 493 494 495 496 534 Next »
Advertisements