Mohit Panchasara has Published 87 Articles

How to prevent overriding using Immediately Invoked Function Expression in JavaScript?

Mohit Panchasara

Mohit Panchasara

Updated on 26-Jul-2023 12:23:25

183 Views

JavaScript allows developers to add functionality and behaviors to the web page. Developers require to create multiple functions and variables to add functionality to different parts of the web page. While developing real-time applications, multiple developers work on the same project. So, avoiding the unintentional overriding of functions and variables ... Read More

How to prevent long words from breaking my div?

Mohit Panchasara

Mohit Panchasara

Updated on 26-Jul-2023 12:20:43

650 Views

Sometimes, developers require to show long words on the web page. For example, show URLs, long file names, etc. Sometimes, the word length is greater than the parent container’s, and the word breaks the container. For example, we created the card to show the file details, and the file name ... Read More

How to prevent inline-block divs from wrapping?

Mohit Panchasara

Mohit Panchasara

Updated on 26-Jul-2023 12:17:32

2K+ Views

In CSS, the ‘display’ property is used to set the display of the children elements. When we set the ‘inline-block’ value for the display property, it shows all children elements side by side. Also, it creates a responsive design automatically as if it doesn’t find enough space, it automatically wraps ... Read More

How to prevent dragging of ghost image?

Mohit Panchasara

Mohit Panchasara

Updated on 26-Jul-2023 12:12:29

480 Views

By default, we can drag all the HTML elements by clicking on them. However, users should not be able to drag the non-draggable element. Otherwise, they can’t be able to differentiate between the draggable and non-draggable elements, as all elements are draggable. The images are also draggable on the web ... Read More

How to prevent browser to remember password in HTML?

Mohit Panchasara

Mohit Panchasara

Updated on 26-Jul-2023 12:10:36

425 Views

Have you ever observed that filling the form data on any web page suggests the previous input values? Now, the question is where the browser is finding that particular value? The browser stores the data in the cookie storage and fetches it from there. It also stores the login credentials ... Read More

How to place two input box next to each other using Bootstrap 4?

Mohit Panchasara

Mohit Panchasara

Updated on 26-Jul-2023 12:01:16

280 Views

Bootstrap is a popular frontend framework containing pre-styled components and allowing developers to use that directly in the application. The ‘4’ is the version of the Bootstrap. Bootstrap also contains pre-styled input components. Furthermore, it has different kinds of the input components, such as input groups, single input, etc. While ... Read More

Inherit a class to another file in Sass

Mohit Panchasara

Mohit Panchasara

Updated on 26-Jul-2023 11:59:34

1K+ 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 ... Read More

How to place Font Awesome icon to input field?

Mohit Panchasara

Mohit Panchasara

Updated on 26-Jul-2023 11:56:33

2K+ Views

In many cases, developers require to place an icon inside the text input or particular HTML element. For example, we are creating a form containing multiple inputs. If we put the icon related to the form input field inside the input, we can create a better UI and attractive design ... Read More

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

Mohit Panchasara

Mohit Panchasara

Updated on 26-Jul-2023 11:54:08

3K+ Views

The CSS contains multiple pseudo selectors and the ‘::before’ pseudo selector is one of them. Every pseudo selector of the CSS allows us to style the HTML elements with different styles. Also, the ‘::before’ pseudo selector allows us to set up the background image for the particular HTML, which we ... Read More

How to perform jQuery Callback after submitting the form?

Mohit Panchasara

Mohit Panchasara

Updated on 26-Jul-2023 11:40:03

1K+ Views

Nowadays, every website contains at least a single form, such as a contact form, application form, etc. It is also required to notify users when the form is submitted successfully or with errors so that users can take action again. In JQuery, we can use the submit() method to call ... Read More

Previous 1 ... 3 4 5 6 7 ... 9 Next
Advertisements