Found 10331 Articles for Web Development

How to crop an image using canvas?

Diksha Patro
Updated on 24-Mar-2023 14:49:57
In this article, we will be discussing how to crop an image using canvas. When you crop an image, you essentially trim away parts of it to create a new image with a specific size or composition. This can be useful for various purposes, such as resizing an image to fit a specific frame or removing unwanted parts of an image. Approaches We have two different approaches to crop an image using canvas including the following − Using the “drawImage()” Using the “getImageData()” Let us look at each step in detail. Approach 1: Using the "drawImage() method" ... Read More

How to use !important in CSS?

Diksha Patro
Updated on 24-Mar-2023 14:47:48
!important in CSS used to specify styles that override any other styles that may have been previously assigned to an element. In this article, we will be discussing different methods to use !important in CSS. Approaches We have two different approaches to using !important in CSS as follows − Using the “Internal styling” Using the “Inline styling” Let us look at each step in detail. Approach 1: Using the "Internal styling method" The first approach is to use !important in CSS as “Internal styling”. You can add !important to a CSS property in an internal ... Read More

How to customize links for pagination in Bootstrap?

Diksha Patro
Updated on 24-Mar-2023 14:43:00
Bootstrap is a well-known front-end framework that provides a set of tools and styles for developing flexible and mobile-friendly websites. In this article, we will be discussing pagination which is a Bootstrap component that allows you to divide the material into numerous pages and browse across them. Bootstrap pagination links are basic and straightforward by default, but you may alter them to match your design demands and make them more user-friendly. Approaches There are various techniques you may use to personalize Bootstrap pagination links. Here are several possibilities − Using CSS Using JavaScript Let us look at ... Read More

How to create warning notification alerts in Bootstrap?

Diksha Patro
Updated on 24-Mar-2023 14:37:13
Bootstrap provides a set of classes and components to create alert messages that can be used to notify users about different types of information, such as errors, warnings, and success messages.Warning alerts are commonly used to inform users about issues or errors on a website or application. The “alert-warning” class in Bootstrap is used to give an alert and indicate a warning message to the user. You can use it to convey different types of messages to the user, such as success, danger, info, and others, by using different classes like alert-success, alertdanger, alert-info, etc. Approaches We have two ... Read More

How to Create a Wave Loader using CSS?

Diksha Patro
Updated on 24-Mar-2023 14:31:39
In this article, we will be creating a Wave Loader using CSS. Wave loader is a loading animation with a wave-like effect. It is a standard way for signaling progress in online applications, and it may enhance the user experience by indicating that material is being loaded. Making a CSS wave loader is a basic technique that uses CSS animation and keyframes. You may design a dynamic and aesthetically beautiful wave loader that can be adjusted to meet your individual demands by setting the animation attributes and keyframes. Approaches There are various techniques to employ CSS to create a ... Read More

How to create a wave ball effect using CSS?

Diksha Patro
Updated on 24-Mar-2023 14:30:17
In this article, we use CSS to create a wave ball effect can offer a unique and visually attractive touch to any website or application. This effect can be used to make buttons, progress indicators, and other user interface elements stand out from the crowd. To get this effect, you will need to be familiar with several fundamental CSS attributes such as border-radius, box-shadow, and animation. Approaches To generate a wave ball effect using CSS, there are numerous techniques that can be done. Among the most common approaches are − Using `box-shadow` Using `animated gradient` Let us ... Read More

How to create a Vertical Navigation Bar using HTML and CSS ?

Diksha Patro
Updated on 24-Mar-2023 14:28:36
A navigation bar is a graphical feature that allows users to navigate through a website or application. It is typically presented as a list of links at the top or side of the screen and assists users in navigating to various areas or pages within the website. HTML and CSS can be used to build horizontal or vertical navigation bars. HTML is used to specify the structure and content of the navigation bar, whilst CSS is used to design and make the navigation bar look appealing. You may improve the overall user experience and make it easier for users to ... Read More

How to check the current selection against an expression using jQuery?

Vidushi Tomar
Updated on 24-Mar-2023 13:43:00
Overview jQuery is a fast, small, and feature-rich JavaScript library. It helps in DOM manipulation, event handling, animation, CSS and Ajax. To achieve the requirement we’ll use the “is(selector)” method of jQuery. is(selector) This method checks the currently selected elements against an expression/selector and returns true if any one of the selected elements matches with the selector. In the below code, we have created a container with the class “test”. We want to change the background color of the container when it is clicked. So, “test” which is the class name of the container will be used as a selector ... Read More

How to count the number of notifications on an icon?

Aman Gupta
Updated on 24-Mar-2023 12:29:49
Overview A notification icon is a common feature that exists in each and every application. In order to count the number of notifications and display it on an icon can be achieved with basic knowledge of JavaScript. So to build this feature we should have some prior knowledge about HTML Document Object Model (DOM), CSS, Bootstrap and JavaScript. Approach To start building this feature first we had to link some of the Content Delivery Network (CDN) links to our HTML page. Font Awesome CDN Link − Bootstrap CDN Link − ... Read More

How to count every element including the head and body in the document in jQuery?

Aman Gupta
Updated on 24-Mar-2023 12:26:01
Overview To count each and every element in the HTML document including the head tag and body tag can be achieved using the jQuery "length()" method. By selecting the universal selector ( * ) as selector and calculating the length of its using length property will return the number of the elements contained in the HTML document page. Syntax The syntax used to count the number of elements is − $(“*”).property; selector − The selector used in this is the universal selector, as the name itself describes that it selects each and every element of the page. ... Read More
Advertisements