Found 1564 Articles for CSS

How to hide number input spin box using CSS?

Mrudgandha Kulkarni
Updated on 07-Aug-2023 19:52:21

2K+ Views

The number input spin box is a commonly used component in web forms that allows users to increase or decrease numeric values with the help of up and down arrows. While this spin box provides convenience for selecting values, there are cases where you may want to hide it to achieve a specific design or behavior. In this article, we will explore how to hide the number input spin box using CSS. We'll discuss two methods that leverage CSS properties to achieve the desired result without any JavaScript or external libraries. Whether you want to create a custom-styled number input ... Read More

How to give a div tag 100_ height of the browser window using CSS?

Mrudgandha Kulkarni
Updated on 07-Aug-2023 16:41:32

118 Views

When working on web development projects, there are often scenarios where you need to give a div tag the full height of the browser window. This can be particularly useful when creating full-page layouts, hero sections, or elements that need to span the entire vertical space. However, achieving this desired effect using CSS can be a bit tricky due to the nature of the CSS Box Model and the default behavior of height properties. In this article, we will explore different techniques to give a div tag 100% height of the browser window using CSS. We'll discuss the various CSS ... Read More

Displaying XML Using CSS

Nikhilesh Aleti
Updated on 04-Aug-2023 19:07:47

2K+ Views

XML stands for Extensible Markup Language. It is also a markup language designed especially for web documents. It defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. It allows developers to create custom tags. XML also enables the definition, transmission, validation, and interpretation of data between applications. How to display XML using CSS We can use CSS properties to style the content present in the XML document. Following are the steps to display XML using CSS − Step-1 − Create a .xml file and add your code to it. Step-2 − ... Read More

Does overflow: hidden create a new block formatting context in CSS?

Nikhilesh Aleti
Updated on 04-Aug-2023 18:50:49

72 Views

The block formatting context (BFC) is a part of the web page layout in CSS where elements are positioned and interact with each other. In simple words, it is like a container that defines a set of rules for how elements should behave inside the container. In this article, we are going to see "Does overflow:hidden create a new block formatting context (BFC) in CSS?" The answer is yes because in CSS, the overflow:hidden property can create a new block formatting context (BFC). When an HTML element has an overflow value other than visible (the default value), it triggers the ... Read More

Design a Portfolio Webpage using HTML and CSS

Nikhilesh Aleti
Updated on 04-Aug-2023 18:24:22

6K+ Views

A portfolio website serves as a platform to display your work and demonstrate your skills. It has the same purpose as a CV (Curriculum vitae). Most of the CVs are hand-written, whereas the portfolio website will showcase them with engaging visual images and often more detailed than a hand-written CV. It is an effective way to attract companies, hiring managers, and recruiters so that they can notice you. In addition to that, it is one of the best and most modern ways to show and give others an understanding that who you are as a professional. Why Create a Portfolio ... Read More

Design a transparent login/Sign Up webpage using HTML and CSS

Nikhilesh Aleti
Updated on 04-Aug-2023 17:33:36

1K+ Views

In HTML, the login forms are used to collect information about the user and have a button to send the details for server-side operations. The login form contains basic information such as Name, Date of birth, Email, Mobile number, Gender, Address, etc. Nowadays, HTML forms are used in almost every website on the Internet to gather user information. In this article, we are going to design a transparent login form on a webpage using HTML and CSS. Designing a transparent login/Sign Up webpage The following is the approach − Create an element with the class named "login-container". ... Read More

How CSS classes can be manipulated in HTML using jQuery?

Nikhilesh Aleti
Updated on 04-Aug-2023 17:04:50

56 Views

In this article, we are going learn how CSS classes can be manipulated in HTML using jQuery. Using jQuery, it is easy to manipulate the style of HTML elements. We have several jQuery methods that are used to manipulate the CSS. Let us discuss them one by one with suitable examples. jQuery addClass() Method The jQuery addClass() method is used to add one or more classes to the selected elements. Syntax Following is the syntax of jQuery addClass() method − $(selector).addClass(classname); The "classname" is a required parameter. It specifies one or more class names to be added. Example ... Read More

How to display a list in n columns format?

Dishebh Bhayana
Updated on 02-Aug-2023 19:35:18

456 Views

In this article, we will learn how to display a list in “n” column format in HTML and CSS with the help of columns, column-count, and grid CSS properties. Displaying a list in columns can be a useful way to save space and make the information more visually appealing. We can achieve this by using different approaches that rely on columns, column-count, and grid properties respectively. Let’s understand each approach in detail. Approach 1 In this approach, we will use the column-count CSS property to determine the number of columns we will divide our content into. Let’s understand ... Read More

How to disable arrows from Number input?

Dishebh Bhayana
Updated on 02-Aug-2023 19:01:20

9K+ Views

In this article, we will learn how to disable and hide arrows from number-type input with the help of 2 different approaches, one using CSS, and the other using an “inputmode” attribute. Number-type inputs are useful when we only want inputs in terms of numbers from users, like input for age, height, weight, etc. By default, the browsers show arrows in the number-type inputs that help us change (increase or decrease) the values in the input. Let’s understand how to implement above with the help of some examples. Example 1 In this example, we will use HTML readonly attribute ... Read More

if/else condition in CSS

Mohit Panchasara
Updated on 26-Jul-2023 12:59:12

2K+ Views

The CSS is useful for styling the content of web pages. We can access HTML elements differently and use various CSS properties to style the content. Sometimes, developers require to style a particular HTML element based on several conditions. For example, we allow users to submit the form on the web application. If the form is successfully submitted, we show the success message in green. Otherwise, we show the error message in red color. In this case, we need to change the style of the message element. So, we can achieve it using the if-else statement, but unfortunately, CSS doesn’t ... Read More

Previous 1 ... 6 7 8 9 10 ... 157 Next
Advertisements