AmitDiwan has Published 11365 Articles

Setting Tab Sizes in HTML with CSS tab-size Property

AmitDiwan

AmitDiwan

Updated on 27-Dec-2023 16:19:55

461 Views

CSS tab-size property allows us to set the amount of whitespace used in tabs. The width of the tab character can be customized easily. The value set for the tab size is in spaces. Let us see the syntax. Syntax tab-size: value; The value above is the ... Read More

Setting Spaces between Letters with CSS letter-spacing Property

AmitDiwan

AmitDiwan

Updated on 27-Dec-2023 16:17:32

182 Views

Using the CSS letter-spacing property, we can specify the amount of space between letters of text. The letter spacing can be set in px, em, etc. length units. Let us see the syntax. Syntax The following is the syntax of the letter-spacing property − letter-spacing: value; The value ... Read More

Setting Margins for Individual Sides using CSS

AmitDiwan

AmitDiwan

Updated on 27-Dec-2023 16:16:19

206 Views

CSS allows us to control the space around individual sides of an element. The CSS margin property is a shorthand for the following properties: margin-top, margin-right, margin-bottom and margin-left. Syntax The syntax of CSS margin property is as follows − Selector { margin-top: /*value*/ ... Read More

Setting Margin Space around elements using CSS

AmitDiwan

AmitDiwan

Updated on 27-Dec-2023 16:15:12

74 Views

The CSS margin property is used to set the margin area around the selected element around its borders. The margin property is a shorthand for margin-top, margin-right, margin-bottom, and margin-left. Let’s say we have set the following margins using the shorthand property − margin: 10px 45px 35px 70px; ... Read More

Setting Direction of Linear Gradients using Angles in CSS

AmitDiwan

AmitDiwan

Updated on 27-Dec-2023 16:10:05

233 Views

For more control over the direction of the gradient, define angle under the linear-gradient() method of the background-image property. This gives more control over the gradient direction − Value 0deg is the "to top" direction Value 90deg is the "to right" direction Value of 180deg is the "to bottom" ... Read More

Setting Cross Browser Opacity using CSS

AmitDiwan

AmitDiwan

Updated on 27-Dec-2023 16:08:34

236 Views

The property opacity is the modern solution and works for Firefox, Safari, opera, and every version of chrome. The -moz-opacity property is the opacity property for Firefox while the –khtml-opacity property is for safari. The filter property is to give opacity like effect. Using all these values together as a ... Read More

Setting Column Rules in CSS3

AmitDiwan

AmitDiwan

Updated on 27-Dec-2023 16:06:24

111 Views

To set column rules, you can use the shorthand column-rule property, which allows you to set the following properties − column-rule-width: set the width of the rule between columns column-rule-style: set the style of the rule between columns column-rule-color: set the rule of the rule between columns The ... Read More

Setting Column Gap using CSS3

AmitDiwan

AmitDiwan

Updated on 27-Dec-2023 16:04:20

99 Views

To set a column gap on a web page, use the column-gap property. You can set the values as − column-gap: length|normal|initial|inherit; The values can be − length − The gap between the columns normal − A normal gap between the columns Gap between the columns ... Read More

Setting Column Count or Width using CSS3

AmitDiwan

AmitDiwan

Updated on 27-Dec-2023 16:02:01

115 Views

Use the columns property in CSS3 to set the column count and width. It is a shorthand property for column-width and column-count properties. With that, you can set both the properties separately as well. The column property The column property works as a shorthand property for the column-with and column-count ... Read More

Width and Height of Elements in CSS

AmitDiwan

AmitDiwan

Updated on 27-Dec-2023 15:56:15

2K+ Views

To specify the height and width of an element, use the CSS height and width properties, respectively. We can also set the maximum and minimum values for these properties using the max-height, max-width, min-height, and min-width properties. Syntax The following is the syntax of height and width properties in CSS ... Read More

Advertisements