Found 8894 Articles for Front End Technology

How to set logo inside loader using CSS?

Devesh Chauhan
Updated on 27-Feb-2023 14:58:00

2K+ Views

To start with this question, we first need to create a ‘loader’. Any animation that informs a user or visitor that a page is now loading and will take a few seconds to finish loading is referred to as a loader. The majority of the time, loaders come in handy when a website takes too long to retrieve the results. If a particular website doesn't have a CSS loader, the user will believe, it is not responding at all during the loading process. Therefore, adding a CSS loader to a webpage causes the user to become distracted or wait ... Read More

How flexible items can be of the same length regardless of its content in CSS?

Devesh Chauhan
Updated on 27-Feb-2023 14:56:52

244 Views

Let us try to understand the flex property. Flex is a shorthand property that sets the condition for length of flex element, whether it will be allowed to adjust itself based on the amount of content it has or the viewport width. Flex Properties The constituent properties of flex property are specified below − Flex-grow This property sets the space that will be assigned to the item out of all the space that is remaining in the flex-container. In other words, it sets whether the main size of the item will be allowed to grow beyond or not. The ... Read More

How to use the handleChange() function in react component?

Shubham Vora
Updated on 27-Feb-2023 12:17:09

6K+ Views

The handleChange() is not a built-in function in the React, but as its name suggests, we can define it to handle changes that users made in the input. In the react, we need to handle the input whenever a user enters some value in the input field to make it editable. Here, we will learn to use the handleChange() function with single and multiple inputs. Use the handleChange() function with functional components In react, we can define the components using the function keyword and call them functional components. We can use hooks to manage the input value while using the ... Read More

How to use font-optical-sizing property in CSS?

Devesh Chauhan
Updated on 27-Feb-2023 14:55:47

255 Views

Before moving onto learning the way of using font-optical-sizing property, we will first be looking at the font-property in CSS and why is there a need for font-optical-sizing as a separate property. The styling of the text on the web page is controlled by the font property in CSS which is a shorthand for many other properties. It can be used to apply the system’s font to an element or set different values for other CSS properties. Font Property This property gets applied to all the elements and is inheritable by nature, meaning the font of the child ... Read More

How to use CSS to separate content and design?

Devesh Chauhan
Updated on 27-Feb-2023 14:53:41

705 Views

A good website is always made up of a perfectly structured HTML document paired with a beautifully created design that grabs the user’s attention. This kind of website is what enhances the overall interactivity of the site making it more engaging. When applying styles to our webpages, we employ Cascading Style Sheets, or CSS for short. We can more easily make a website presentable by using CSS. It distinguishes between the HTML document's structure and the presentation, which refers to the elements that users see and interact with. As opposed to a plain and uninteresting appearing website that ... Read More

How to use AppBar Component in Material UI?

Shubham Vora
Updated on 27-Feb-2023 12:16:00

2K+ Views

The Material UI is a library containing various components with different styles and responsive designs. For example, Material UI contains an AppBar component, which we can directly import into the React component and use as a child component of other components. Also, the Material UI library contains different components like buttons, links, tab bars, pagination etc. Furthermore, we can manipulate every component by passing a prop while using the component. For example, we can make an AppBar responsive by passing the respected props. This tutorial will teach us to use the AppBar component in Material UI. Users should install the ... Read More

Explain About the Ease Of Maintenance With CSS

Devesh Chauhan
Updated on 27-Feb-2023 14:52:22

199 Views

Cascading Style Sheets, or CSS in short, is used when we need to apply styles to our websites. The use of CSS makes it easier for us to make a website presentable. It separates the structure, which is made up of HTML document, from the presentation, which implies the part which the user sees and interacts with. Why do we need CSS for presentation Having a different and creative style has become a must have property for a website, as it makes the website fun to interact with, instead of a plain and dull looking website which can be made ... Read More

How to set Parent State from Children Component in ReactJS?

Shubham Vora
Updated on 26-Oct-2023 02:29:41

34K+ Views

In ReactJS, we can set the state in the child component by passing the values as a prop of the child component. Sometimes, we require to set the state from the children component to the parent component in ReactJS. We can create a state handler function in the parent component and pass it as a prop of the child component. After that, we can use the child component function to set the parent component's state. In such a way, we can manage the state of the parent component from the child component. Set parent state from children component in functional ... Read More

How to change background-color on a specific wider viewport in CSS ?

Devesh Chauhan
Updated on 27-Feb-2023 14:51:27

932 Views

The method through which we can determine the device being used for surfing is by using what we call, “viewport” widths. In computer graphics, a viewport usually indicates the polygonal (often rectangular) area that is now being viewed by user. When we talk about viewports in a web browser, we usually mean a window on which the content is visible and outside of which the user cannot view the content. There are basically two types of viewports. The viewport that is fixed and onto which the browser draws the whole web page is called the layout viewport. ... Read More

How to set focus on an input field after rendering in ReactJS?

Shubham Vora
Updated on 27-Feb-2023 12:07:59

9K+ Views

While working with the forms in React, sometimes we may require to focus on any input. For example, we want to enable the submit button only if the user enters some text in the input field. In such cases, we can focus on the input so that users know that they have to enter some text in the input field to enable the button. In this tutorial, we will learn multiple ways to focus on the input field after rendering in ReactJS. Use the autoFocus attribute with the input field We can use the autofocus attribute in HTML to focus ... Read More

Advertisements