Found 1594 Articles for CSS

How to Create a Register Form with CSS?

AmitDiwan
Updated on 24-Oct-2024 12:05:03

5K+ Views

To create a register form with CSS, we will be using HTML forms. A registration form includes name, email, password, contact and other type of information collected from a user. It consists of input fields, buttons and other form elements which can be easily created using form tag. In this article, we will be discussing and understanding the complete process of how to create a register form with CSS with stepwise explanation and complete example code. Steps to Create a Register Form with CSS We will be following below mentioned steps to create a register form with CSS. ... Read More

How to create a social media login form with CSS?

AmitDiwan
Updated on 14-Dec-2023 12:01:28

1K+ Views

On a login page, you must have seen login form enter the username and password to login. However, nowadays, social media buttons are also visible to login using Facebook, Twitter, Gmail, etc. We can easily design such forms using CSS. For that, you need to also set the social media icons. Let us see how to create a social media login form with CSS. Set the CDN for the social media icons To add the icons on our web page, we have used the Font Awesome Icons. Include it on a web page using the element − ... Read More

How to create a contact form with CSS?

AmitDiwan
Updated on 08-Apr-2020 09:20:49

484 Views

Following is the code to create a contact form using CSS −Example Live Demo * {box-sizing: border-box;} body{    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } label{    font-size: 15px; } input[type=text],textarea {    width: 100%;    padding: 12px;    border: 1px solid #ccc;    border-radius: 4px;    box-sizing: border-box;    margin-top: 6px;    margin-bottom: 16px; } input[type=submit] {    background-color: #4CAF50;    color: white;    padding: 12px 20px;    border: none;    border-radius: 4px;    cursor: pointer; } input[type=submit]:hover {    background-color: #45a049; } form {    border-radius: 5px;    background-color: #feffc6;    padding: 20px; } Contact Form First Name Last Name Email Id Contact OutputThis will produce the following output −

How to create a responsive checkout form with CSS?

AmitDiwan
Updated on 08-Dec-2023 16:32:58

870 Views

A checkout on a web page can be seen on an E-Commerce website. It is a webpage where all the details about the product you are buying is visible. It includes the product details, total amount to be paid, the card details to be entered, the billing address. Also includes a button to proceed the buying process. Let us see how to create a responsive checkout form. Set a flex To arrange the fields, use the display property and set it to flex − .Fields { display: flex; flex-wrap: wrap; ... Read More

How to create a signup form with HTML and CSS?

AmitDiwan
Updated on 19-Jul-2024 13:26:37

17K+ Views

In this article, we will be understanding How to create a signup form with HTML and CSS. A sign-up form allows any new user visiting the website to register. It includes adding an email-id, password, repeat password, and clicking on the Sign-Up button to register. To allow the browser to save the password, click the Remember Me. You can also provide a Terms & Policies link so the users can first read the registration terms. Let us see how to create a signup form with HTML and CSS. Steps to Create Sign Up Form We are following 2 steps to ... Read More

How to create a responsive login form with CSS?

AmitDiwan
Updated on 14-Dec-2023 11:11:35

2K+ Views

On a web page, a login form consists of fields for username and password. Also, a login button is created for the users to click on the button and login. A forgot password link is also placed for the users who forgot their account password. With that, “Remember Me” checkbox is also set so the users can select it and allow the browser to remember the password to avoid entering the password again and again. Let us create a responsive login form with CSS. Set the form avatar image We have placed an image in the beginning for the avatar ... Read More

How to create a "scroll back to top" button with CSS?

AmitDiwan
Updated on 17-Nov-2023 11:08:36

646 Views

On a lot of websites, you must have seen a Top button while you scroll to the bottom. That is called the “scroll back to top” button. Create a Button First, create a button that will be clicked to reach the top − Top Style the top Button The display is set to none to make the button hidden. The button is positioned fixed using the fixed value of the position property. The bottom property is used to position the button downwardsn − topBtn { display: none; position: fixed; bottom: 20px; right: 30px; z-index: 1; ... Read More

How to style round buttons with CSS?

AmitDiwan
Updated on 21-Dec-2023 14:41:35

679 Views

To make round buttons, the border-radius property plays a key role. Set it to 50% and that’s it. It will convert the shape to rounded. To set multiple buttons, use the display property with the value block. This will arrange them. Also, if you want to change the style on hover, then use the :hover selector. Let us see how to style round buttons with HTML and CSS. Create a button shape Create links using the element and make it look like buttons − 50% 50% Text decoration none The text-decoration property is set to none to ... Read More

How to style text buttons with CSS?

AmitDiwan
Updated on 21-Dec-2023 14:45:46

377 Views

As the name suggests, the text buttons are buttons with a text on it. Bootstrap includes pre-defined classes such as .btn-default, .btn-primary, .btn-success, .btn-info, .btn-warning, etc. But, we can create buttons with CSS without using the Bootstrap classes. Let us see how to style the text buttons with HTML and CSS. Buttons The element is used to set different buttons for information, success, warning and danger. These are the different button styles we will set with CSS − Success Info Warning Danger Default Style the buttons The buttons are styled like this. For the buttons, the cursor ... Read More

How to style block buttons (full-width) with CSS?

AmitDiwan
Updated on 21-Dec-2023 14:33:43

1K+ Views

To set full-width buttons on a web page, set the button with width 100%. Further style the buttons using the text-align property to center the text on the button. Place the text properly in the button using the padding property. The padding area is set on all the four sides of an element at once using the padding property. Let us see how to style block button i.e., full-width with CSS. Set the button Use the element and set a button on the web page − Block Button The button width Style the button and set the ... Read More

Advertisements