Found 10483 Articles for Web Development

How to set the order of flexible items using CSS?

Abhishek
Updated on 20-Nov-2023 15:29:51

139 Views

Generally, all the HTML elements renders on the web page in the same order in which they are defined in the HTML document. But we can change the order of any element using the order property of CSS. We can use the order property on the elements which are defined inside a flexbox or an element that contains the display: flex; property. Once we used the display flex on the parent element, we can use the order property to change the order of the child flexible items using the order property. NOTE − Please make a note that the order ... Read More

How to set the maximum value of progress bar using HTML?

Abhishek
Updated on 20-Nov-2023 15:25:57

297 Views

The progress bar on any website is used to represent the percentage of any work that is completed like the download progress of any song or movie from any website. You can use the progress bar to show the amount of song or movie that is downloaded and remaining. In HTML, we can use the element to show a progress bar on the website to represent the amount of completed and the remaining work. You can handle the value of the progress bar on your own by defining the attributes with the element itself. Let us now understand ... Read More

How to set the inset shadow using CSS?

Abhishek
Updated on 20-Nov-2023 15:14:31

268 Views

Generally, we use the box-shadow property to apply shadow around any box or container. The box shadow property in CSS by default applies the shadow outside around the boundaries of the container. But we can also use the box shadow property to set the shadow inside the container as well. Let us see how we can use the box shadow property to set the inner shadow to a container and make it look attractive. Syntax We can use the box shadow property with different number of values for different purposes as shown in the below syntax − box-shadow: x-offset ... Read More

How to set the cursor style on browser using CSS?

Abhishek
Updated on 20-Nov-2023 15:10:18

150 Views

Generally, the cursor on any browser window is of arrow type by default. But you can change the cursor style or type to any style of your choice for any kind of text. There are many cursor style options that are available in CSS that you can choose to style your cursor like pointer, zoom-in, zoom-out etc. You can also use any image or icon as a cursor style value to change the cursor style to an image. There is a cursor property provided by the CSS that we can use to style our cursor on browser using CSS. Let ... Read More

How to set the content as a counter?

Abhishek
Updated on 20-Nov-2023 15:06:46

180 Views

In general, we use JavaScript to set the dynamic content as counter for the content on the web page. But in this article, we are going to learn how we can set the content as counter using the CSS counter properties. It is possible to set content as counter by using the counter properties inside the before or after pseudo selectors. Let us now see the counter properties we can use to set the content as counter using CSS. The CSS counters are just like the variables in other languages. We can increment their values using CSS rules or properties. ... Read More

How to set position of an image in CSS?

Abhishek
Updated on 20-Nov-2023 14:54:33

1K+ Views

In general, the default position of an image is left aligned on the web page. But you can change the position of an image according to your needs and set the position of an image manually on the web page where you have to show that particular image. Let us now discuss about the ways of positioning an image on the webpage using CSS. There are two methods or approaches in general to position an image on the web page using CSS that are listed below − Using the float property of CSS Using the object-position property of CSS ... Read More

How to set padding inside an element using CSS?

Abhishek
Updated on 20-Nov-2023 14:46:07

352 Views

Padding in CSS is used to give some space around the content of the element. You can add the space around the any type of content that is contained by the element. The content can be direct text, or any other nested elements inside it. You can easily add the space you want to set between the content and the boundaries of the element. Padding is the inner space, that is set only around the content and between the boundaries and content of element. Let us see how you can add padding inside an element around its content using CSS. ... Read More

How to set padding around an element using CSS?

Abhishek
Updated on 20-Nov-2023 14:32:18

163 Views

The padding property in CSS is used to set the inner space between the content and the boundaries of the container. The space defined using the padding property will be set around the content of the container not around the container itself. It will set the space inside the container not outside it. Let us see the different ways or methods of applying the padding around an element using CSS. There are two ways in which we can set padding around the content of an element using CSS as listed below − Using the individual padding property for each ... Read More

How to set one column control over height in Bootstrap?

Abhishek
Updated on 20-Nov-2023 13:07:39

96 Views

In this article, we will learn how we can set one column control over height in bootstrap? To solve this problem, first we make two different columns on the web page using Bootstrap classes, then we will use a div element inside one of those columns with position absolute to set the control of that particular column over height in bootstrap. Let us now practically understand the above approach or the process in details by implementing it inside the different code examples. Steps Step 1 − In the first step, we will define two different bootstrap columns inside a ... Read More

How to use UseFormControl() hook in Material UI?

Tarun Singh
Updated on 01-Nov-2023 13:16:44

1K+ Views

In React MUI, managing form states or validating them is a big task. To solve this issue, we have the useFormControl() hook available in MUI. This hook allows to customize the state according to different project requirements, etc. In this article, we'll explore the usage of the UseFormControl() hook in the Material UI in React. useFormControl API The useFormControl API or hook returns the context value of the parent FormControl component. It gives an abstraction layer that allows to manage of the form state and validation of the given form controls. API returnable objects There are different useFormControl hook returns, ... Read More

Advertisements