Author: Awais Farooq
-
Variables
CSS variables are custom properties that allows you to store and reuse values throughout your CSS program. CSS variables are similar to variables in other programming languages. They are set using the — prefix, and accessed using the var() function. To declare a CSS variable, use the following syntax: To use a CSS variable with var() function, use the following…
-
Pagination
CSS pagination is a technique for creating page numbers for a website, which allows users to easily navigate between large amounts of content. It is a simple and effective way to organize your website and make it more user-friendly. Step 1: Add HTML Markup To create a pagination element in HTML, you can use a…
-
Buttons
Buttons are interactive elements that allow users to perform actions on your website or application. Buttons are commonly either rectangular or circular in shape and have a text label that says what will happen when you click on them. To create a CSS button, you will need to use the <button> element in HTML. You…
-
Tooltips
CSS tooltips are like little boxes of information that appear when you hover the mouse over some element on a webpage. These tooltips give you more information about a specific element on a web page, only when you hover over an element. Creating Tooltip The following example demonstrates how to create tooltips using CSS. The tooltip is displayed when the user…
-
Box Sizing
The box-sizing property in CSS is used to define how the total width and height of an element is calculated. By default, the width and height of an element includes its content, padding, and border. However, with the box-sizing property, you can alter this behavior to include or exclude the padding and border from the width and height calculation.…
-
Multiple-column layout
CSS provides a multiple-column layout that helps is displaying the content in columns. It appears like that in a newspaper. This is generally referred to as multicol. CSS Multiple-column layout – Three-column layout A three-column layout contains three columns. Multicol is enabled using the properties such as column-count or column-width. Let us see the examples using these two properties:…
-
Animations Property
CSS animations are a technique for transforming how elements look or appear and act with motion effects on web page. Configuring an animation CSS Animation – Sub-properties The following are the animation property’s sub-properties: Property Description animation-composition Indicates the composite operation to apply when many animations are having simultaneous effects on the same property. animation-delay Indicates whether the animation…
-
transition Property
CSS transition property allows you to animate changes in an element’s style properties over a specified duration. They provide a simple and efficient way to add animations to web elements without the need for complex JavaScript code or external libraries. CSS transition property is a shorthand property for Possible Values Applies to All elements, ::before and ::after pseudo-elements. Syntax…
-
3D Transforms
CSS provides a set of properties that allow you to transform and adjust the elements in the three-dimensional space. The properties that let you transform the elements include 3D translations, rotations, scaling, perspective adjustments, etc. The following table lists all the various properties that are used to transform the elements in the three-dimensional space: Property…
-
2D Transforms
CSS provides a set of properties that allow you to transform and adjust the elements in the two-dimensional space. The properties that let you transform the elements include translations, rotations, scaling, skewing, etc. The following table lists all the various properties that are used transform the elements in the two-dimensional space: Property Description rotate Rotates…