Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove shadow of input type="submit"?

Tags:

html

css

I am trying to remove the shadow of an <input type="submit" value="Login"/> inside a form but I cannot remove it.

On the official documentation it says that you can set the box-shadow property to none value.

Value: none | <shadow> [ , <shadow> ]*

but it does not work.

#loginButton{
	font-size: 25px;
	border-radius: 5px;
	background-color: #ff751a;
	box-shadow: none;
}
<form action="login.html">
	<input id="loginButton" type="submit" value="Login"/>
</form>

I also tried with !important exception to see if it is something related about specificity but it also does not work.

#loginButton{
	font-size: 25px;
	border-radius: 5px;
	background-color: #ff751a;
	box-shadow: none !important;
}
<form action="login.html">
  <input id="loginButton" type="submit" value="Login"/>
</form>

Am I missing something? Why I cannot remove it?

Thanks in advance!

like image 856
Francisco Romero Avatar asked Dec 14 '22 06:12

Francisco Romero


2 Answers

It's not box-shadow, it's a special border. Just specify any border and it'll disappear.

#loginButton {
  font-size: 25px;
  border-radius: 5px;
  background-color: #ff751a;
  border: 1px solid silver;
}
<form action="login.html">
  <input id="loginButton" type="submit" value="Login"/>
</form>
like image 98
Qwertiy Avatar answered Dec 16 '22 18:12

Qwertiy


It is border not shadow so you need to do border:none;

#loginButton{
    font-size: 25px;
    border-radius: 5px;
    background-color: #ff751a;
    border:none;
}
like image 31
Ahmed Salama Avatar answered Dec 16 '22 19:12

Ahmed Salama