Shubham Vora

Shubham Vora

793 Articles Published

Articles by Shubham Vora

Page 38 of 80

Which property specifies the distance between nearest border edges of marker box and principal box?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 277 Views

The CSS marker-offset property specifies the distance between the nearest border edges of the marker box and the principal box. The marker refers to the bullet points or numbers in lists. However, it's important to note that this property was deprecated and removed from CSS specifications due to limited browser support. Important: The marker-offset property is obsolete and no longer supported in modern browsers. For similar functionality, use padding-left or margin-left on list items instead. Syntax selector { marker-offset: value; } Example 1: Unordered List with Marker Offset ...

Read More

Which property is used to underline, overline, and strikethrough text using CSS?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 480 Views

In CSS, the text-decoration property is used to underline, overline, and strikethrough the text. Underlining the text means drawing a line below the text, and overlining the text means drawing a line above the text. Striking through the text means drawing a line on the text to show text is crossed out or erased. In this tutorial, we will learn to use the different values of the text-decoration CSS property to style text differently. Syntax text-decoration: decoration-line decoration-style decoration-color decoration-thickness; Possible Values PropertyValuesDescription decoration-lineunderline, overline, line-throughType of decoration decoration-stylesolid, dotted, dashed, ...

Read More

Which property is used as shorthand to specify a number of other font properties in CSS?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 283 Views

The CSS font property serves as a shorthand for specifying multiple font-related properties in a single declaration. Instead of writing separate properties for font-style, font-weight, font-size, line-height, and font-family, you can combine them all using the font property. Syntax selector { font: font-style font-weight font-size/line-height font-family; } Values PropertyDescriptionExample Values font-styleSpecifies the style of the fontnormal, italic, oblique font-weightSpecifies the weight (boldness) of the fontnormal, bold, 100-900 font-sizeSpecifies the size of the fontpx, em, rem, % line-heightSpecifies the line height (optional)normal, numbers, px, em font-familySpecifies the font familyArial, serif, ...

Read More

What is the difference between overflow: auto and overflow: scroll in CSS?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 658 Views

In CSS, the overflow property controls how content that exceeds an element's dimensions is handled. When content overflows, you can choose to show scrollbars automatically or always display them. The auto and scroll values provide different scrollbar behaviors. In this tutorial, we will learn the difference between the auto and scroll values of the CSS overflow property. Syntax selector { overflow: auto | scroll; } Overflow: auto The overflow: auto property shows scrollbars only when the content actually overflows the container. If the content fits within the element's dimensions, ...

Read More

Shake a Button on Hover using HTML and CSS

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 5K+ Views

To shake a button on hover using HTML and CSS, we should have basic understanding of CSS animations and keyframes. We will be understanding how to utilize CSS animation and keyframes to apply shaking effect to a button on hovering. Syntax .button:hover { animation: shake-name duration timing-function iteration-count; } @keyframes shake-name { 0%, 100% { transform: transform-function(start-value); } 50% { transform: transform-function(end-value); } } Method 1: Rotational Shake Effect The following example creates a button that shakes by rotating left and ...

Read More

How to remove border from Iframe using CSS?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 8K+ Views

To remove border from iframe using CSS can be useful when you don't want unwanted borders when integrating content from other sources on your webpage like YouTube videos, other webpages, etc. An iframe is an inline frame that allows us to embed another document within the current HTML document. In this article, we will discuss various approaches to remove borders from iframes using CSS. We have an iframe window which displays the content of other webpages in our HTML document. Our task is to remove the border around the iframe window. Syntax iframe { ...

Read More

Programming a slideshow with HTML and CSS

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 5K+ Views

Programming a slideshow using HTML and CSS, we should have a basic understanding of HTML and CSS animations. Slideshow displays a series of content in a sequential manner with smooth transitions. In this article, we will discuss how to create a slideshow using HTML and CSS without using JavaScript. We are having a set of div elements having textual content or images as slides. Our task is to program a slideshow using HTML and CSS. Basic Syntax /* Container for the slideshow */ .slideshow-container { overflow: hidden; width: ...

Read More

Reduce the size of an icon during the animation

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 580 Views

It is important to add animations to icons or images to improve the UX of the application. In this tutorial, we will learn to add animation to the icons. Also, we will learn to reduce or increase the size of the icon during the animation. We will use the transform: scale() property to change the dimensions of the icon during the animation. Syntax img { animation: icon 5s infinite; } @keyframes icon { 0% {transform: scale(1);} 100% {transform: scale(0.6);} } In the above syntax, ...

Read More

Wildcard Selectors (*, ^ and $) in CSS for classes

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 14K+ Views

CSS wildcard selectors allow us to select HTML elements containing a particular substring in the value of attributes like class, id, or other attributes. They are useful when applying styles to multiple elements having a common pattern in their attributes. In this article, we will learn about three types of wildcard selectors − Contains (*=) wildcard selector Starts with (^=) wildcard selector Ends with ($=) wildcard selector Syntax /* Contains wildcard */ [attribute*="value"] { /* styles */ } /* Starts ...

Read More

Why to put “_” in front of filename in SCSS?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 802 Views

In SCSS, placing an underscore (_) at the beginning of a filename creates a partial file. This tells the SCSS compiler to ignore the file during compilation, preventing it from generating a separate CSS file. Partials are designed to be imported into other SCSS files. When to Use Underscore Prefix Use the underscore prefix when creating SCSS files that contain − Variables and mixins Reusable CSS components Files meant to be imported, not compiled independently For example, _variables.scss and _mixins.scss are partials, while main.scss is a regular file that gets compiled. Example 1: ...

Read More
Showing 371–380 of 793 articles
« Prev 1 36 37 38 39 40 80 Next »
Advertisements