CSS Articles - Page 15 of 154

Creating Border Animation using CSS

Jaisshree
Updated on 22-May-2023 11:20:46

4K+ Views

CSS is used to create beautiful and engaging border animations, which add movement and interest to a web page. To create border animation, we will first need to define a border for the element we want to animate, then we’ll use CSS transitions and animations to add movement to the border. Border animations can be used to create hover effects on buttons, links, and other interactive elements. They can also be used to create loading animations that show progress while a page or element is loading. We can also use border animations on call-to-action buttons to make them more ... Read More

Creating a Tabbed pills and Vertical pills navigation menu in Bootstrap

Jaisshree
Updated on 19-May-2023 15:08:27

768 Views

Bootstrap provides several options for creating navigation menus, like tabbed and vertical pills. To create this kind of navigation menus in Bootstrap, we can use the built-in classes and components offered by the framework. This aids in creating a stylish and functional navigation menu that works well on all devices. Approach - 1: Tabbed Pills Navigation In this type of menus each tab represents a different section of the website. The pills are arranged horizontally. Whenever a tab is clicked, the corresponding section gets displayed. Algorithm Load the Bootstrap CSS and JavaScript files. Add a container element with ... Read More

Creating Snackbar using HTML, CSS and Javascript

Jaisshree
Updated on 19-May-2023 15:22:22

1K+ Views

Snackbars are notification bars that appear at the bottom of a web page to display an important message, usually to confirm an action or provide feedback to the user. It is displayed on the screen for fewer seconds and made to disappear. They are an essential element of user interface design and are widely used in web applications. Approach - 1 Here we will be creating a simple and basic snackbar, which will be displayed for 3 seconds and disappears whenever the user taps the show snackbar button. Algorithm Make the title of the HTML document as ... Read More

Creating a skewed background using CSS

Jaisshree
Updated on 12-Nov-2023 11:27:44

3K+ Views

A skewed background is a design effect that creates a diagonal or angled appearance on the background of a web page or element. This effect can be achieved using CSS transforms to skew the container element, along with other CSS properties like background-color, gradients, and images to create the desired visual effect. Approach -1: using the transform property in CSS Algorithm Set the title of the document as “Skewed Background”. Define CSS variables for the skew angle and background colors Set the transform property to skew the background using the CSS transform property Set a linear gradient background using ... Read More

Mobile

How to set the width of the bottom border animatable using CSS?

Shubham Vora
Updated on 17-May-2023 14:13:12

1K+ Views

In CSS, we can use the ‘border-bottom’ CSS property to set the bottom border for an HTML element. We can use the animation property to animate the width of the bottom border. Also, we require to define the keyframes by changing the width of the bottom border to animate it. Syntax Users can follow the syntax below to animate the width of the bottom border. selector { animation: mymove 5s infinite; } @keyframes mymove { 50% { border-bottom: 25px solid black; } } ... Read More

How to remove indentation from an unordered list item using CSS?

Tarun Singh
Updated on 13-Aug-2024 17:46:23

7K+ Views

To remove indentation from an unordered list item using CSS, we will be understanding various approaches. Indentation is a common feature used to give a visual hierarchy to the list items. In this article, we will be going through five different approaches to remove indentation from an unordered list item using CSS. We are having an unordered list of different programming languages, our task is to remove the indentation from unordered list using CSS. Approaches to Remove Indentation from an Unordered List Item Here is a list of approaches to remove indentation from an unordered list item using CSS which ... Read More

How to display paragraph elements as inline using CSS?

Tapas Kumar Ghosh
Updated on 16-May-2023 09:25:49

3K+ Views

CSS has internal and inline styles that can be used to display the paragraph element in an inline manner. CSS is a language used for styling the HTML and XML texts. Changing the display property of an HTML element is a typical CSS job. The display attribute of an element indicates how it should be presented, such as block, inline, or inline-block. When displaying a paragraph element inline, the display property must be modified from its default block value to inline. Here we are going to learn how to develop a css code that will display the paragraph elements as ... Read More

How to disable resizable property of textarea using CSS?

Tapas Kumar Ghosh
Updated on 16-May-2023 09:33:13

1K+ Views

In CSS we can use the ‘resize’ property to resize the textarea box of a webpage. We can resize the height and width of the textarea box. In case if we set the resize value to none, the textarea box will not resize. In some situations, disabling the resizable functionality of a textbox area in HTML might be accessible if we wish to limit user interactions and control the layout of the input. The size of the text entry is important to the design and the layout of webpage or application is also required. In this article, we will create ... Read More

How to disable text selection highlighting using CSS?

Tapas Kumar Ghosh
Updated on 19-Aug-2024 16:19:59

9K+ Views

To disable text selection highlighting using CSS, it can help in preventing the content copying. We can use CSS user-select property to disable the text selection highlighting. In this article, we will be understanding how we can use CSS user-select property to disable text selection highlighting. we are having a div element with some textual content written inside it. Our task is to disable text selection highlighting using CSS. Disabling Text Selection Highlighting Using CSS We have used a div tag to write the textual content in it. After writing the ... Read More

Sorting Function in SASS

Rushi Javiya
Updated on 11-May-2023 13:58:32

380 Views

In this article, we will learn about the sorting function in Sass, but before moving forward, let’s have a basic idea about Sass; so sass is a powerful and popular preprocessor language for CSS that allows developers to write more efficient and maintainable stylesheets. One of the best advantages of Sass is the ability to use functions to streamline the development process. However, one function that Sass does not provide out of the box is a sorting function. Sorting is a common task in all programming languages and can be useful in many different contexts when working with stylesheets. Unfortunately, ... Read More

Advertisements