How to eliminate blue borders around linked images using CSS?

Riya Kumari
Updated on 15-Mar-2026 16:06:19

704 Views

When images are used as hyperlinks, older browsers may display a default blue border around them, similar to how hyperlinked text appears underlined in blue. This article explains how to eliminate these unwanted borders using CSS. Syntax a img { border: none; } What are Linked Images? Linked images are images wrapped inside anchor () tags to create clickable hyperlinks. In older browsers like Internet Explorer 6-8, these images automatically receive a blue border to indicate they are clickable links. Method 1: Removing Borders Completely The most common ... Read More

How to create Pay Roll Management Webpage using JavaScript?

Riya Kumari
Updated on 15-Mar-2026 16:06:02

2K+ Views

Nowadays, there are many companies and small-scale businesses rising and booming in the world. There are so many people working in these industries or firms. It has become a crucial task for the employer to manage the payment records of his employee. Thus, arises the need of proper payroll management system in every big or small firm. It is almost impossible for the employer to manually maintain the pay roll record of each and every employee in big firms. So, they need digital pay roll management system. In this article, we will discuss about how to create a pay ... Read More

How to create Incoming Call Animation Effect using CSS?

Riya Kumari
Updated on 15-Mar-2026 16:05:27

1K+ Views

The CSS animation property allows developers to create dynamic visual effects that enhance user experience. One popular effect is the incoming call animation, which simulates a ringing phone with pulsing shadows and vibration motion. In this article, we will create an incoming call animation effect using CSS animations and the box-shadow property to simulate the visual feedback of a ringing phone. Syntax .element { animation: name duration timing-function iteration-count; box-shadow: offset-x offset-y blur-radius spread-radius color; } @keyframes name { 0% { /* initial ... Read More

How to disable browser print options (headers, footers, margins) from the page with CSS?

Dishebh Bhayana
Updated on 15-Mar-2026 16:04:58

4K+ Views

We can control the print preview page's header, footer, and margin with CSS using the @page directive. This allows us to customize the layout and remove browser-generated print options like headers, footers, and default margins. When previewing a print page in the browser, you typically see extra information like the page title, date and time, and page numbers in the header and footer. There are also default margins applied to the page. We can disable these using CSS print styles. Syntax @media print { @page { margin: ... Read More

How to create a printable webpage using CSS media queries?

Dishebh Bhayana
Updated on 15-Mar-2026 16:04:35

699 Views

We can create a printable webpage and control the styling in the print preview using the CSS @media print media query. This powerful CSS feature allows us to define specific styles that only apply when a user prints the webpage or views the print preview. We can control element visibility, adjust layouts, modify colors, and optimize content specifically for print format. Syntax @media print { /* CSS styles for print version */ selector { property: value; } ... Read More

How to create numbering using counter-increment property in CSS?

Dishebh Bhayana
Updated on 15-Mar-2026 16:04:17

428 Views

The CSS counter-increment property is used to increase or decrease the counter values that we can display on a webpage using CSS. CSS counters are useful when we want to count the occurrences of an HTML element in a webpage. We will also use the counter-reset CSS property here, which helps us to reset or initialize the CSS counter value to a desired number. Syntax /* counter-increment */ selector { counter-increment: counter-name increment-value; } /* counter-reset */ selector { counter-reset: counter-name reset-value; } Here, the ... Read More

How to automatically close all collapsible elements inside of the accordion when closing the accordion?

Dishebh Bhayana
Updated on 15-Mar-2026 16:04:00

2K+ Views

We will use the bootstrap accordion component in our article to demonstrate how to collapse all the children's accordions inside the parent accordion. An accordion is a collapsible component that helps to display an expand/collapse type of content on the webpage. In this article, we will use the Bootstrap 5 Accordion component to display a list of expandable/collapsible elements in a nested fashion. Now, first, we will listen to the "hide" collapse event by attaching an event listener to the parent accordion. After that, when the "hide" collapse event gets fired, we will find all the collapsible elements inside ... Read More

How to Automatic Refresh a web page in a fixed time?

Dishebh Bhayana
Updated on 15-Mar-2026 16:03:39

9K+ Views

We can auto-refresh a web page by either using a "meta" tag with the "http-equiv" property, or by using the setInterval() browser API. Automatic refreshing websites have certain use cases − for example, while creating a weather-finding web application, we may want to refresh our website after a set interval of time to show the user the near-exact weather data for a location. Let's look at the 2 approaches below to understand how to set up an auto-refreshing website. Method 1: Using Meta Tag In this approach, we will use the "http-equiv" property of a "meta" tag ... Read More

How to auto-suggest rich content while searching in Google AMP?

Dishebh Bhayana
Updated on 15-Mar-2026 16:03:17

208 Views

To implement auto-suggestion of rich content while typing in an input field, we use the amp-autocomplete component from Google AMP. This component provides dynamic suggestions as users type, enhancing the search experience. Required Scripts To create auto-suggest functionality in Google AMP, you need to include these scripts − Installation: Add these script tags to your HTML section to enable AMP autocomplete functionality. Basic Syntax {"items": ... Read More

How to author fast-loading HTML pages?

Dishebh Bhayana
Updated on 15-Mar-2026 16:02:53

341 Views

Optimizing HTML pages for fast loading improves user experience, reduces server load, and enhances SEO rankings. This involves minimizing file sizes, reducing HTTP requests, and implementing modern loading techniques. Approach 1: Minimize File Size Remove unnecessary whitespace, comments, and inline styles to reduce file size. Use external CSS and JavaScript files instead of inline code. Bad Practice How to author fast-loading HTML pages? body { margin: 0; } h3 { color: blue; } ... Read More

Advertisements