AmitDiwan has Published 11433 Articles

Java Program to Convert Array into Collection

AmitDiwan

AmitDiwan

Updated on 19-Jan-2024 14:51:03

267 Views

In this article, we will understand how to convert array into collection. The Collection is a framework that provides architecture to store and manipulate the group of objects. Java Collections can achieve all the operations that you perform on a data such as searching, sorting, insertion, manipulation, and deletion.Below is ... Read More

Using the CSS3 Linear and Radial Gradients

AmitDiwan

AmitDiwan

Updated on 02-Jan-2024 19:14:13

167 Views

Gradients displays the combination of two or more colors. Linear gradients are used to arrange two or more colors in linear formats like top to bottom. Radial gradients appear at center. Linear-Gradient The linear gradient is set using the background-image property. The angle is set as the first parameter. Here ... Read More

Using the combination of Percentage and Em in CSS

AmitDiwan

AmitDiwan

Updated on 02-Jan-2024 19:13:10

228 Views

We can use a combination of percentage and em to specify the font-size of elements for better compatibility of font. This allows us to have uniform text across different browsers. Both percentage and em are relative measurements. Syntax The syntax of CSS font-size property is as follows. The below works ... Read More

Using CSS :placeholder-shown to Customize Styles for Empty Text Input

AmitDiwan

AmitDiwan

Updated on 02-Jan-2024 19:08:16

190 Views

To customize the style for the input textbox having a placeholder, we use the :placeholder-shown pseudo-class of CSS. Placeholder text is a hint for the user to understand what is to be typed in the input text field. The following examples illustrate CSS :placeholder-shown pseudo-class. Set the border for the ... Read More

Universal Selector in CSS

AmitDiwan

AmitDiwan

Updated on 02-Jan-2024 19:06:30

1K+ Views

The CSS * selector is a universal selector which is used to select all elements of the HTML DOM. If you want to set a similar style for the entire document, then use the Universal selector. Syntax The syntax for CSS universal selector is as follows: Place the styles you ... Read More

Understanding the Flex Layout Model in CSS3

AmitDiwan

AmitDiwan

Updated on 02-Jan-2024 18:41:26

91 Views

CSS3 provides a layout mode Flexible Box, commonly called as Flexbox. Flexbox (flexible box) is a layout mode of CSS3. Using this mode, you can easily create layouts for complex applications and web pages. It includes the container, flex items, etc. The container has the following properties − flex-direction ... Read More

Understanding the difference between CSS Border and Outline

AmitDiwan

AmitDiwan

Updated on 02-Jan-2024 18:40:00

766 Views

The CSS border property is used to define the border properties for an element. It is a shorthand for border-width, border-style and border-color. Borders for individual sides can be styled and a border-radius can also be specified. On the other hand, the CSS outline doesn’t take up space and is ... Read More

Understanding CSS Selector and Declarations

AmitDiwan

AmitDiwan

Updated on 02-Jan-2024 18:23:53

353 Views

CSS selectors are used to selecting HTML elements by matching each element of a given pattern. We define the styles by declaring property and their value inside the selector. Syntax The syntax for declaring styles is as follows − Selector { property: value; } ... Read More

What is Pseudo-class in CSS

AmitDiwan

AmitDiwan

Updated on 02-Jan-2024 18:04:55

135 Views

CSS Pseudo Classes are representation of special states of different elements, these classes not only depict basic elements in document but also their external factors such status, position, history, etc. Using these pseudo classes developer can even style elements which cannot be directly selected via CSS selectors. Pseudo-classes The following ... Read More

Understanding CSS Absolute and Relative Units

AmitDiwan

AmitDiwan

Updated on 02-Jan-2024 18:02:08

180 Views

The fonts, height, width, margins, padding, etc. are set on a web page with the length units. For example, height 100px, width 100px, font 2em, etc. These length units are categorised into Absolute and Relative Units. CSS Absolute Units The absolute length units are fixed in relation to each other. ... Read More

1 2 3 4 5 ... 1144 Next
Advertisements