AmitDiwan has Published 10744 Articles

The CSS3 rotate3d() Function

AmitDiwan

AmitDiwan

Updated on 29-Dec-2023 15:01:10

108 Views

The rotate3d() function in CSS is used to rotate an element in 3D space. Set the amount and angle of rotation as parameter of rotate3d(). Syntax The following is the syntax of the rotate3d() method − rotate3d(x, y, z, angle) Above, x, y, z is the x-axis, y-azis, ... Read More

The CSS translate() Function

AmitDiwan

AmitDiwan

Updated on 28-Dec-2023 18:23:40

203 Views

The translate() function in CSS is used to reposition an element in a horizontal and vertical direction. If you want to move an element from the current position along the X- and the Y-axis, use the translate() function. Syntax The syntax is as follows − Transform: translate(x, y) ... Read More

The CSS scale() Function

AmitDiwan

AmitDiwan

Updated on 28-Dec-2023 18:21:07

185 Views

The scale() function in CSS is used to define a transformation that resizes an element on the 2D plane. Set the amount of scaling in each direction as the parameter of the scale() function. The transform property is used to set the scale. Syntax The following is the syntax of ... Read More

The CSS rotate() Function

AmitDiwan

AmitDiwan

Updated on 28-Dec-2023 18:20:01

144 Views

The rotate() function in CSS rotates an element. The parameter sets the angle for rotation. Values can be degrees, radians, etc. The transform property is used to set the rotation. Syntax The following is the syntax of the rotate() − transform: rotate(angle); The angle is set as a ... Read More

The border-width Property in CSS

AmitDiwan

AmitDiwan

Updated on 28-Dec-2023 18:18:25

104 Views

The CSS border-width property is used to specify the width for border of an element. We can also set width for individual sides using the following properties − border-top-width border-right-width border-left-width border-right-width Syntax The syntax of the CSS border-width property is as follows − Selector { ... Read More

The border-style Property in CSS

AmitDiwan

AmitDiwan

Updated on 28-Dec-2023 18:17:18

113 Views

The CSS border-style property is used to specify the border style for an element. We can also define border-style for individual sides using the − border-top-style border-right-style, border-left-style border-bottom-style Syntax The syntax of CSS border property is as follows − Selector { ... Read More

The border-color Property in CSS

AmitDiwan

AmitDiwan

Updated on 28-Dec-2023 18:16:24

124 Views

The CSS border-color property is used to specify a border color for elements. We can also set color for individual sides using the − border-top-color border-right-color border-left-color border-right-color Syntax The syntax of CSS border-color property is as follows − Selector { border-color: /*value*/ ... Read More

The :nth-child Pseudo-class in CSS

AmitDiwan

AmitDiwan

Updated on 28-Dec-2023 15:25:53

179 Views

The CSS :nth-child() pseudo-class selects an element that is the nth child element of some other element. It matches elements that are the nth child of its parent. Syntax The following is the syntax for the :nth-child pseudo class − :nth-child(){ /*declarations*/ } Select the ... Read More

The :last-child Pseudo-class in CSS

AmitDiwan

AmitDiwan

Updated on 28-Dec-2023 15:24:39

201 Views

The CSS :last-child pseudo-class selects an element that is the last child element of some other element. As the name suggests, it will select the last child of its parent. Let us see some examples to implement the :last-child pseudo class. Syntax The following is the syntax for the :last-child ... Read More

The :lang Pseudo-class in CSS

AmitDiwan

AmitDiwan

Updated on 28-Dec-2023 15:23:08

125 Views

The CSS :lang() pseudo-class selector is used to select the elements with lang attribute specified. This helps us target a specific language associated with the content and style them accordingly. We can set multiple languages using this selector. A two-letter language code is to be set i.e., the following for ... Read More

Advertisements