CSS Articles - Page 19 of 154

How to use a not:first-child selector in CSS?

Tarun Singh
Updated on 07-Aug-2024 11:26:46

2K+ Views

There are various selectors in CSS out of all those selectors, so use :not(:first-child) selector. We can very easily achieve this using the :not and :first-child selectors in a combination. For example, if you want to select all paragraphs except the first one that are inside a div element, you can use div :not(:first-child) selector. In this article, we will learn how to use the :not(:first-child) selector in CSS. We will explore the different methods to use a :not(:first-child) selector. Different Approaches to use :not(:first-child) Selector There are different ways to use a use :not(:first-child) selector in ... Read More

How to translate an image or icon by hovering over it?

Tarun Singh
Updated on 04-May-2023 16:00:30

2K+ Views

In web development, interactivity is key to providing a memorable user experience. One common technique used to add interactivity is hovering over images or icons to reveal more information or change the appearance. Translating an image or icon by hovering over it is a great way to add some movement and interest to your website. In this article, we will learn how to translate an image or icon on hover. To perform this task, we will learn different approaches using only HTML and CSS. Different Methods to Translate an Image or Icon on Hover Method 1: CSS Transitions The first ... Read More

How to transform child elements preserve the 3D transformations?

Tarun Singh
Updated on 04-May-2023 15:53:27

339 Views

Being a web developer, it's important to have a solid understanding of 3D transformations and how to apply them to child elements. Transforming child elements can be a bit tricky, as we'll need to make sure that the transformations of the parent element are preserved. CSS 3D transforms create depth and visually interesting elements on the web page using perspective. In this article, we will learn how to transform child elements and preserve 3D transformations. We will learn different methods to transform the child elements in HTML. Different Methods to Transform Child Elements Preserve the 3D Transformations To transform the ... Read More

How to test CSS property of an element using Protractor?

Tarun Singh
Updated on 04-May-2023 08:34:09

383 Views

Testing CSS properties is crucial in ensuring the quality of a web application. CSS properties determine how elements are displayed on a webpage, such as font size, color, and layout. Testing CSS properties can help detect bugs and ensure that the application looks and functions as intended. A tool known as a protractor provides developers with different methods to test CSS properties. Protractor is a popular end-to-end testing framework that uses WebDriver to automate interactions between a web application and a browser. It is widely used to test Angular applications, but can also be used to test other web applications. ... Read More

Mobile

How to style scrollbar thumb for the webkit browsers and what are components of scrollbar?

Tarun Singh
Updated on 03-May-2023 18:02:22

912 Views

Scrollbars are an essential part of web browsing, allowing users to navigate through long pages of content. Webkit-based browsers such as Safari and Google Chrome offer several ways to style scrollbar thumbs, which are the draggable handles that move up and down the scrollbar track. Scroll bars are an essential feature for any window that displays content extending beyond its borders. The inclusion of a scroll bar provides users with a means of navigating through the content of the client area. A scroll bar's orientation is responsible for determining the direction in which scrolling occurs when the user interacts with ... Read More

How to style label associated with selected radio input and checked checkboxes using CSS?

Tarun Singh
Updated on 21-Aug-2024 17:12:51

4K+ Views

To style label associated with selected radio input and checked checkboxes using CSS, is important task in forms as it makes it easy to identify the option selected by user. In this article, we will understand how to style label associated with selected radio input and checked checkboxes using CSS using :checked psuedo class selector and CSS combinators. We are having three radio buttons and three checkboxes, our task is to style label associated with selected radio input and checked checkboxes using CSS. Styling Label of Checked Radio Button and Checkboxes We have created three ... Read More

How to style icon color, size, and shadow by using CSS

Tarun Singh
Updated on 03-May-2023 17:54:10

3K+ Views

Icons are an essential part of any website or application, as they give us a quick and easy way for users to understand and interact with the content. However, using default icons can make a website look generic and unappealing. Using CSS, we can style icon color, size, and shadow to create a unique and visually appealing user experience. In this article, we will learn how to style icon color, size, and shadow using CSS. We will learn the different methods to style the icons in CSS. Different Methods to Style Icons in CSS Method 1: Using Font Awesome Icons ... Read More

What is CSS sprites and how to implement them on a page?

Mohit Panchasara
Updated on 03-May-2023 17:49:07

231 Views

What are Sprites in CSS? In CSS, sprites are techniques used to which we can use to decrease the number of HTTP requests by the web browser. In this technique, we require to combine multiple images in a single image. After that, we can set the single image for every image element’s background and also required to set the position to show the particular image from the combined image. Here, we can combine the different images in a single image using the image editing tools such as Photoshop, paint, etc. After that, we can use that single image with different ... Read More

What is CSS Flexbox?

Mohit Panchasara
Updated on 03-May-2023 17:45:16

184 Views

As a beginner developer, learning about CSS flexbox is important. It also helps to make the responsive web design easy by optimizing the spaces of the element. The CSS flexbox is a layout model that we can use to arrange the child items better. It also changes the flex items' dimensions if the flexbox's content is overflowing and tries to show all content of the web page. Terminology of CSS Flexbox In this section, we will learn about the basic terminology used while using the CSS flexbox layout. Flex container − It is an HTML element for which we ... Read More

What are the real world usage of CSS with SVG?

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

160 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

Advertisements