Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Javascript Articles
Page 494 of 534
How to set the CSS margin properties in one declaration?
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 MoreChange the style of bottom border with CSS
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 MoreCSS padding-top property
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 MoreCSS padding-bottom property
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 MoreSet Inset border with CSS
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 MoreThe set border that looks as though it is carved into the page
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 MoreSet a border between two lines with CSS
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 MoreChange the width of the bottom border with CSS
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 MoreSet the right margin of an element with CSS
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 MoreSet border width with CSS
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