Found 1594 Articles for CSS

What are the real world usage of CSS with SVG?

Mohit Panchasara
Updated on 03-May-2023 17:36:51

118 Views

Developers use CSS to style the web page's content and represent it properly. It can be used to make any content attractive. The full form of the SVG is the scalable vector image. The SVG is one type of image like a jpg or png. The jpg or png are raster images created using the grids of the pixels. If we zoom in on the raster images, it starts getting blurry. The vector image is created using the mathematical functions which draw vectors and joins them to make a shape. As it is not a grid of pixels, it never ... Read More

What are the classes to create responsive image & video in Materialize?

Mohit Panchasara
Updated on 14-Jul-2023 17:23:40

156 Views

The Materialize library allows developers to use pre-defined CSS classes and JavaScript methods to make a responsive web design. We can use the Materialize classes to customize the typography, add grids to the web page, and make responsive videos and images. It is always required to make images and videos responsive to avoid the overflow of them. In this tutorial, we will use different classes of Materialize to make images and videos responsive. Using the ‘Responsive-img’ class to Make an Image Responsive The ‘responsive-img’ class of Materialize allows developers to make images responsive. It sets the image's width equal to ... Read More

Various tricks for :before pseudo elements using position property in CSS

Mohit Panchasara
Updated on 03-May-2023 16:56:28

793 Views

Generally, we add content to the web page using HTML and style the content using CSS. The CSS contains some pseudo-selectors, such as ‘:before’, and we can use it to add content to the web page before any HTML element. Sometimes, developers don’t want to put the content before the HTML element using the ‘:before’ selector, but they require to position the content. For example, if we use the ‘:before’ selector to add an icon before the text, we require space between the text and the icon. So, we need to change the icon's position using the CSS position property. ... Read More

Top Open Source Libraries for Tailwind CSS Components

Mohit Panchasara
Updated on 03-May-2023 16:54:32

370 Views

In this tutorial, we will see the top open-source libraries for tailwind CSS components. Tailwind CSS is a utility-first CSS framework providing many pre-designed components to help developers rapidly create cutting-edge web apps. Tailwind CSS has its own set of pre-designed components and several open-source libraries that can be integrated, further enhancing the development experience. Cascading Style Sheet is a language used to describe how Web pages are presented, including their colors, layout, and fonts. Moreover, CSS includes several tools for editing and modifying the website. The best open-source libraries for Tailwind CSS elements are listed below − Tailwind Starter ... Read More

Top 10 Tailwind CSS Plugins

Mohit Panchasara
Updated on 03-May-2023 16:34:02

2K+ Views

In this tutorial, we are going to see the top 10 tailwind CSS plugins. Plugins are software components that enable customization. It adds specific features to customize the program. It enables to edit and modify the font, colors, and background of the program. With the help of CSS and html, one can make simple and user-friendly webpages. CSS has several functions to edit and customize the webpage. Tailwind CSS Typography Tailwind CSS Typography is a plugin used to style documents. It offers a number of font customization options and typography-related classes that are useful to design text on websites. Syntax ... Read More

Targeting only Firefox with CSS

Mohit Panchasara
Updated on 26-Jun-2024 14:27:14

5K+ Views

While developing the web application, developers must make it look fine in every browser. Some CSS properties are not supported by the browsers like Firefox but are supported by other browsers such as Chrome, Opera, etc. In such cases, we need to write a CSS code that targets only Firefox browser. In this article, we will learn two different methods to write CSS, which targets only Firefox browsers. Different ways to target Firefox with CSS There are two ways to target firefox with CSS as mentioned below. Using the Mozilla-specific CSS Extension ... Read More

Logical Properties in CSS

Mohit Panchasara
Updated on 03-May-2023 16:27:07

272 Views

In CSS, logical properties allow developers to define the style based on the logical structure of the web page rather than the physical layout. It means we can apply the CSS according to the text direction or content flow. Mainly logical properties are used to set the HTML element's margin, padding, and border. It contains different variants of the margin, padding, and border property. Logical properties can be defined according to the block and inline dimensions. Block dimension − The block dimension represents the perpendicular direction of the content flow. For example, in English text direction is left ... Read More

Loading Text Animation Effect using CSS

Mohit Panchasara
Updated on 03-May-2023 15:36:22

1K+ Views

Nowadays, the animation is the most powerful feature in the applications to attract more users, and it increases users' interest in exploring the application. In web applications, we can create animations using HTML and CSS. However, we can create animations using JavaScript, but it makes the website slower. In this tutorial, we will learn to load text animation using HTML and CSS. It is important to show loading text with animation while fetching data from API or loading web pages to make it more attractive. Example 1 In the example below, we created the ‘loader’ div and ‘loader-inner’ div element ... Read More

Is there any selector for elements containing certain text in CSS?

Mohit Panchasara
Updated on 01-Oct-2024 17:14:06

9K+ Views

To select elements containing certain text in CSS, we can use CSS attribute selectors. We can either use pre-defined attribute or we can add custom attribute in the HTML document. In this article, we are having some div element with some attribute, our task is to select elements containing certain text in CSS Approaches to Select Elements Containing Certain Text Here is a list of approaches to select elements containing certain text in CSS which we will be discussing in this article with stepwise explaination and complete example codes. Using Attribute Value Selector ... Read More

How to specify order of classes using CSS?

Riya Kumari
Updated on 02-May-2023 16:15:11

1K+ Views

Cascading Style Sheets (CSS) is a powerful component of web development which enables the developers to determine the visual appearance of their websites. In CSS, classes are used as selectors which enables us to apply several specific styles to an element. You can also use multiple classes for a particular element. However, when you apply multiple classes to an element, it is necessary to know how to specify the order of these classes in which they will be rendered to avoid discrepancies and unexpected results. In this article, we will discuss different methods to specify the order of classes ... Read More

Advertisements