# How to remove the styling from an input

**URL:** <https://forum.freecodecamp.org/t/how-to-remove-the-styling-from-an-input/636121>\
**Category:** Curriculum Help\
**Tags:** css, html\
**Created:** [September 7, 2023, 3:22pm UTC](https://forum.freecodecamp.org/t/how-to-remove-the-styling-from-an-input/636121 "2023-09-07T15:22:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JaredCrabbe](https://avatars.discourse-cdn.com/v4/letter/j/b487fb/32.png) [@JaredCrabbe](https://forum.freecodecamp.org/u/JaredCrabbe)\
**Post date:** [September 7, 2023, 3:22pm UTC](https://forum.freecodecamp.org/t/how-to-remove-the-styling-from-an-input/636121/1 "2023-09-07T15:22:24Z")

</div>

![image](https://global.discourse-cdn.com/freecodecamp/original/4X/6/7/f/67f3a01b2af4622c0fdbb8dde13b745a2ce5898f.png)  
Could anyone help me remove the borders/ indenting of this form’s inputs, i cant figure out how to ask this question lol ^^

---

<div class="post-metadata">

**Author:** ![diomed](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/diomed/32/6810_2.png) [@diomed](https://forum.freecodecamp.org/u/diomed)\
**Post date:** [September 7, 2023, 3:24pm UTC](https://forum.freecodecamp.org/t/how-to-remove-the-styling-from-an-input/636121/2 "2023-09-07T15:24:03Z")

</div>

we’d have to see the code first

---

<div class="post-metadata">

**Author:** ![JaredCrabbe](https://avatars.discourse-cdn.com/v4/letter/j/b487fb/32.png) [@JaredCrabbe](https://forum.freecodecamp.org/u/JaredCrabbe)\
**Post date:** [September 7, 2023, 3:27pm UTC](https://forum.freecodecamp.org/t/how-to-remove-the-styling-from-an-input/636121/3 "2023-09-07T15:27:43Z")

</div>

so i haven’t done any border styling its just the basic look of them besides the background being changed its just inputs and a text area

---

<div class="post-metadata">

**Author:** ![JaredCrabbe](https://avatars.discourse-cdn.com/v4/letter/j/b487fb/32.png) [@JaredCrabbe](https://forum.freecodecamp.org/u/JaredCrabbe)\
**Post date:** [September 7, 2023, 3:28pm UTC](https://forum.freecodecamp.org/t/how-to-remove-the-styling-from-an-input/636121/4 "2023-09-07T15:28:44Z")

</div>

```auto
input,
select,
textarea {
  margin: 10px 0 0 0;
  width: 100%;
  min-height: 2em;
  max-height: 4em;
  height: 3em;
  border-radius: 10px;
  background-color: var(--background-col);
  color: var(--text-col);
}

```

thats all the styling for the elements

---

<div class="post-metadata">

**Author:** ![lasjorg](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lasjorg/32/280761_2.png) [@lasjorg](https://forum.freecodecamp.org/u/lasjorg)\
**Post date:** [September 7, 2023, 6:57pm UTC](https://forum.freecodecamp.org/t/how-to-remove-the-styling-from-an-input/636121/5 "2023-09-07T18:57:31Z")

</div>

Not sure I really understand, if you remove the border you can’t see the border radius, and I don’t know what you mean by “indenting”.

You can remove the border by setting it to `none` or `0`. There is also an outline when the element has focus. You can change its appearance but you shouldn’t remove it.

If you want to change multiple/all the styles on the element setting `all: unset` as the first style is an easy way to get a blank slate to start from.

> **[Styling web forms - Learn web development | MDN](https://developer.mozilla.org/en-US/docs/Learn/Forms/Styling_web_forms)**
>
> As you can see, as long as we want to build forms with just text fields and buttons, it's easy to style them using CSS. In the next article, we will see how to handle form widgets which fall into the "bad" and "ugly" categories.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [March 8, 2024, 6:58am UTC](https://forum.freecodecamp.org/t/how-to-remove-the-styling-from-an-input/636121/6 "2024-03-08T06:58:02Z")

</div>

Closed on March 8, 2024, 6:58am UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
