Web Development Articles

Page 555 of 801

How to prevent inline-block divs from wrapping?

Mohit Panchasara
Mohit Panchasara
Updated on 15-Mar-2026 5K+ Views

The CSS white-space property can be used to prevent inline-block elements from wrapping to the next line. When you set display: inline-block on elements, they normally wrap when there's insufficient horizontal space. Using white-space: nowrap on the parent container forces all inline-block children to stay on the same line. Syntax .parent-container { white-space: nowrap; } .child-element { display: inline-block; } Example 1: Basic Inline-Block Divs In this example, we create three inline-block divs that won't wrap even when the browser window is resized − ...

Read More

Inherit a class to another file in Sass

Mohit Panchasara
Mohit Panchasara
Updated on 15-Mar-2026 3K+ Views

The SASS is a pre-processor built on top of the CSS to manipulate the CSS code better. It contains multiple directives and rules, making it easy to write CSS code. It also contains some very useful features such as inheritance, if/else statements, functions, etc. In SASS, we can import one file into another file and use one file's content for another. It also allows us to create inheritance between multiple classes. We can use the @extend directive to inherit one class to another class. By using inheritance in CSS, we can increase the reusability of the code. In ...

Read More

How to place background image using ::before pseudo selectors in CSS?

Mohit Panchasara
Mohit Panchasara
Updated on 15-Mar-2026 7K+ Views

To place background image using ::before pseudo selectors, we will be using background-image and ::before pseudo element. CSS ::before pseudo-element is used to add content before the selected element with the content property allowing to insert text, images, or decorative elements, without modifying the HTML structure. This technique is particularly useful when you want to add a background image that can be styled independently from the main element, providing better control over layering and positioning. Syntax selector::before { content: ""; background-image: url("path/to/image.jpg"); position: absolute; ...

Read More

Advanced JavaScript Animation Techniques using CSS and JavaScript Libraries

Mukul Latiyan
Mukul Latiyan
Updated on 15-Mar-2026 613 Views

As web development continues to evolve, creating engaging and interactive user experiences has become an essential part of modern web applications. From subtle micro-interactions to complex visual effects, animations play a crucial role in capturing the attention of users and conveying information in a dynamic and visually appealing manner. JavaScript, in combination with CSS and various JavaScript libraries, offers powerful techniques for creating advanced animations on the web. In this article, we will delve into the world of advanced JavaScript animation techniques, exploring how CSS transitions and JavaScript libraries can be harnessed to bring your web animations to life. ...

Read More

How to divide text into two column layout using HTML and CSS?

Tapas Kumar Ghosh
Tapas Kumar Ghosh
Updated on 15-Mar-2026 5K+ Views

Creating a two-column text layout is a common web design requirement for displaying content side-by-side. This can be achieved using HTML div elements combined with CSS positioning properties like float or modern layout methods like flexbox. Syntax .column { width: 50%; float: left; } Properties Used The following CSS properties are commonly used for two-column layouts − width − Defines the width of each column (typically 50% or specific pixel values) float − Positions elements side-by-side (left/right) margin − Creates spacing around columns padding ...

Read More

How to dynamically create \'@-Keyframe\' CSS animations?

Tapas Kumar Ghosh
Tapas Kumar Ghosh
Updated on 15-Mar-2026 734 Views

In CSS, the @keyframes rule specifies a sequence of styles that an element should go through during the animation. The @keyframes rule allows you to create dynamic animations by defining specific points (keyframes) in an animation timeline where certain CSS properties should have particular values. These styles are then applied to elements via the animation property, which sets the animation's duration, timing function, and other properties to create smooth transitions between keyframe states. Syntax @keyframes animation-name { 0% { /* CSS properties */ } 50% { /* CSS ...

Read More

How to design Meet the Team Page using HTML and CSS

Tapas Kumar Ghosh
Tapas Kumar Ghosh
Updated on 15-Mar-2026 2K+ Views

In this article, we will learn how to design a "Meet the Team" page using HTML and CSS. The team page plays a very important role while creating websites for any business or organization. People from different countries connect with the business through team members. The team page is a great way to introduce the team that shows the members of the organization or company. Key Properties Used The following CSS properties are used in this example − text-align − Aligns text content to center, left, or right. background-color − Sets the background color of elements. ...

Read More

Creating Browsers Window using HTML and CSS

Jaisshree
Jaisshree
Updated on 15-Mar-2026 1K+ Views

A browser window is the graphical user interface (GUI) element of a web browser that displays web pages and web applications. It usually consists of a title bar, menu bar, address bar, navigation buttons, and content area. Syntax .container { border: 1px solid #ccc; border-radius: 5px; overflow: hidden; } .buttons { display: flex; } .minimize, .maximize, .close { width: 12px; height: 12px; border-radius: 50%; } ...

Read More

Creating Border Animation using CSS

Jaisshree
Jaisshree
Updated on 15-Mar-2026 5K+ Views

CSS border animations add visual appeal and interactivity to web elements by creating smooth transitions and movements around element borders. These animations can enhance user experience through hover effects, loading indicators, and attention-grabbing buttons. Syntax selector { border: width style color; animation: name duration timing-function iteration-count; transition: property duration timing-function; } Method 1: Hover Effect with Border Color Animation This example creates a pulsing border animation that changes to a gradient border on hover − ...

Read More

Creating Snackbar using HTML, CSS and Javascript

Jaisshree
Jaisshree
Updated on 15-Mar-2026 1K+ Views

Snackbars are notification bars that appear at the bottom of a web page to display an important message, usually to confirm an action or provide feedback to the user. They are displayed on the screen for a few seconds and then disappear automatically. They are an essential element of user interface design and are widely used in web applications. Syntax A basic snackbar consists of HTML structure, CSS styling for positioning and animations, and JavaScript for show/hide functionality − .snackbar { visibility: hidden; position: fixed; ...

Read More
Showing 5541–5550 of 8,010 articles
« Prev 1 553 554 555 556 557 801 Next »
Advertisements