Found 10483 Articles for Web Development

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

Shubham Vora
Updated on 19-Apr-2023 14:23:19

217 Views

In CSS, the ‘marker-offset’ CSS property is used to specify the distance between the nearest border edges of marker box and principal box. In CSS, the marker is a pseudoelement that refers to the bullet points of the lists. Here, we will learn to set the distance between the nearest border edges of marker box and principal box. Syntax Users can follow the syntax below to set the distance between the nearest border edges of the marker box and the principle box. marker-offset: value; Example In the example below, we have created an unordered list of different programming ... Read More

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

Shubham Vora
Updated on 19-Apr-2023 14:22:28

368 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 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: style decoration color thickness; Values Style – It represents the style of the decorated line, such as solid, dotted, wavy, etc. Decoration - ... Read More

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

Shubham Vora
Updated on 19-Apr-2023 14:20:35

216 Views

Developers can customize the font of the webpage using various CSS properties. For example, the ‘font-size’ property is used to specify the font size, and the ‘font-weight’ CSS property is used to specify the font weight of the text. Furthermore, there are lots of other CSS properties which we can use to customize the fonts. The ‘font’ CSS property can be used as a shorthand of all properties to customize the font. Syntax Users can follow the syntax below to use the ‘font’ shorthand CSS property to customize the web page's font. font: font-style font-weight font-size/line-height font-family; Values ... Read More

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

Shubham Vora
Updated on 19-Apr-2023 14:19:06

505 Views

In CSS, the ‘overflow’ property is used to specify the overflow of the content of the HTML element. For example, if the height of the div element is ‘500px’, and the height of the inside content is ‘1000px’, we need to make the content scrollable. In this tutorial, we will learn the difference between the ‘auto’ and ‘scroll’ values of the CSS ‘overflow’ property. Overflow: auto in CSS In CSS, overflow: auto sets the overflow of the HTML element to auto. It means if the content of the div is overflowing, it sets the ‘scroll’ as a value of ... Read More

Shake a Button on Hover using HTML and CSS

Shubham Vora
Updated on 13-Sep-2024 14:11:44

4K+ 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. In this article, we are having buttons wrapped inside a div container. Our task is to shake button on hover using HTML and CSS. Steps to Shake Button on Hover Using HTML and CSS To shake a button on hover using HTML and CSS, we will be utilizing CSS animation and transform properties. We will be following below mentioned steps ... Read More

How to remove border from Iframe using CSS?

Shubham Vora
Updated on 05-Aug-2024 14:41:32

8K+ Views

To removing border from iframe using CSS can be useful when you don't want unwanted border when you integrate content from other sources on your webpage like youtube video, another webpage etc. An iframe is an inline frame that allows us to embed another document within the current HTML document. In this article, we will be discussing various approaches to remove border from iframe using CSS. We are having an iframe window which display the content of other webpage in our HTML document. Our task is to remove the border around the iframe window. Approaches to Remove Border from Iframe ... Read More

Programming a slideshow with HTML and CSS

Shubham Vora
Updated on 10-Sep-2024 13:53:24

4K+ 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. Steps for Programming a Slideshow with HTML and CSS We will be following a two step process for programming a slideshow with HTML and CSS ... Read More

Reduce the size of an icon during the animation

Shubham Vora
Updated on 19-Apr-2023 14:00:11

483 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 Users can follow the syntax below to reduce the size of an icon during the animation. img { animation: icon 5s infinite; } @keyframes icon { 0% {transform: scale(1);} ... Read More

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

Shubham Vora
Updated on 14-Aug-2024 17:30:40

14K+ Views

CSS wildcard selectors allow us to select an HTML element containing the particular substring in the value of the particular attribute, such as classes, id or other attributes. It is useful when style is applied to multiple elements having a common pattern in their attributes. In this article, we will be learning about wildcard selectors in CSS and it's types which are mentioned below. Contains (*=) wildcard selector Starts with (^=) wildcard selector Ends with ($=) wildcard selector Contains (*=) wildcard selector CSS contains(*=) wildcard ... Read More

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

Shubham Vora
Updated on 19-Apr-2023 09:18:08

691 Views

The SCSS allows developers to write CSS in a more structured way. Also, we can create multiple files for CSS while using the SCSS and import the required file in the main SCSS file. In this tutorial, we will see the objective to put ‘_’ before the filename in SCSS. When should we put ‘_’ in front of the filename in SCSS? Whenever we put the -_’ before the filename in the SCSS, the compiler ignores the file while compiling the SCSS. The file becomes partial if the filename starts with the ‘_’ character. For example, we have two ... Read More

Advertisements