karthikeya Boyini

karthikeya Boyini

1,420 Articles Published

Articles by karthikeya Boyini

Page 47 of 142

Does 'position: absolute' conflict with flexbox?

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 367 Views

The position: absolute property can work with flexbox, but understanding their interaction is crucial for proper layout control. How Absolute Positioning Affects Flexbox When you apply position: absolute to a flex container, it removes the container from the normal document flow but maintains its flexbox properties for arranging child elements. Basic Example Here's how to combine absolute positioning with flexbox: .parent { display: flex; ...

Read More

What is availHeight property in JavaScript?

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 140 Views

The screen.availHeight property returns the available height of the user's screen in pixels, excluding areas occupied by the taskbar, dock, or other system interfaces. Syntax screen.availHeight Return Value Returns a number representing the available screen height in pixels, excluding system UI elements like taskbars. Example Here's how to use the screen.availHeight property to get the available screen height: Screen Available Height ...

Read More

The dragLeave event fires before drop for HTML5 drag and drop events

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 413 Views

In HTML5 drag and drop operations, the dragLeave event can sometimes fire unexpectedly before the drop event, causing visual inconsistencies or premature cleanup of drop zone styling. This occurs due to event bubbling and the complex nature of drag operations. Understanding the Problem The dragLeave event fires when the dragged element leaves the boundaries of a drop target. However, it can also fire when moving between child elements within the same drop zone, causing unwanted behavior. Basic Drag and Drop Setup Here's a complete working example that demonstrates the issue and solution: ...

Read More

What are label statements in JavaScript?

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 4K+ Views

JavaScript label statements are used to prefix a label to an identifier. A label can be used with break and continue statements to control the flow more precisely. A label is simply an identifier followed by a colon (:) that is applied to a statement or a block of code. Syntax labelName: statement Where labelName is any valid JavaScript identifier, and statement can be any JavaScript statement, typically a loop. Using Labels with break Statement Labels allow you to break out of nested loops by specifying which loop to exit: ...

Read More

What is a composite data type i.e. object in JavaScript?

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 3K+ Views

A data type is known as a composite data type when it represents a number of similar or different data under a single declaration of variable i.e., a data type that has multiple values grouped together. There are mainly three types of composite data types named as below − Object Array Function In this article, we will discuss the first type of composite data type i.e. object. What is an Object? An object is a collection of properties i.e, an object can store the properties ...

Read More

Perform Animation on the background-color property with CSS

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 199 Views

The CSS background-color property can be animated using CSS animations and keyframes to create smooth color transitions. This technique is commonly used to create hover effects, attention-grabbing elements, and interactive visual feedback. Syntax selector { background-color: initial-color; animation: animation-name duration timing-function iteration-count; } @keyframes animation-name { percentage { background-color: target-color; } } Example: Basic Background Color Animation The following example demonstrates a continuous background color animation that transitions from ...

Read More

Wrap the flex items with CSS

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 230 Views

The CSS flex-wrap property controls whether flex items are forced onto a single line or can wrap onto multiple lines within a flex container. By default, flex items try to fit on one line, but wrapping allows them to break onto new lines when there isn't enough space. Syntax selector { flex-wrap: value; } Possible Values ValueDescription nowrapDefault. Items are laid out in a single line wrapItems wrap onto multiple lines if needed wrap-reverseItems wrap onto multiple lines in reverse order Example: Basic Flex Wrap The ...

Read More

Set the flex items vertically from bottom to top with CSS

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 842 Views

Use the flex-direction property with column-reverse value to set the flex items vertically from bottom to top. This reverses the normal column direction, making items stack from the bottom upward. Syntax .container { display: flex; flex-direction: column-reverse; } Example The following example demonstrates how to arrange flex items vertically from bottom to top using column-reverse − .mycontainer { display: flex; ...

Read More

How to preserve the readability when font fallback occurs with CSS

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 178 Views

The CSS font-size-adjust property helps preserve text readability when font fallback occurs. When the preferred font is unavailable and the browser falls back to another font, this property maintains consistent visual sizing by adjusting the font size based on the aspect ratio. Syntax selector { font-size-adjust: value; } Possible Values ValueDescription noneDefault. No adjustment applied numberAspect ratio value (typically 0.4 to 0.7) Example: Font Size Adjustment The following example demonstrates how font-size-adjust maintains consistent visual sizing when fonts change − ...

Read More

Usage of var() CSS function

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 128 Views

The var() function in CSS is used to insert the value of custom properties (CSS variables) into your stylesheet. It provides a way to reuse values throughout your CSS and create more maintainable code. Syntax var(--custom-property-name, fallback-value) Possible Values ParameterDescription --custom-property-nameThe name of the custom property (must start with two dashes) fallback-valueOptional value to use if the custom property is not defined Example: Basic Usage The following example demonstrates how to define custom properties and use them with the var() function − ...

Read More
Showing 461–470 of 1,420 articles
« Prev 1 45 46 47 48 49 142 Next »
Advertisements