Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Removing the shadow from a button

Tags:

The button I want is the one at bottom, but the one I have is the top.

enter image description here

The problem arises from the fact that the top button in HTML:

<form class="button_to" method="get" action="/"><input type="submit" value="Ok" /></form> 

and the bottom button in HTML:

<button type="button">Ok</button> 

The CSS for the top button is:

.signup-success input[type="submit"], .signup-success input[type="submit"]:active, .signup-success input[type="submit"]:focus {   width: 80%;   background: transparent;   color: #00AA66;   border-color: #00AA66; } 

The CSS for the bottom button is:

.signup-success button, .signup-success button:active, .signup-success button:focus {   margin-top: 15px;   width: 80%;   background: transparent;   color: #00AA66;   border-color: #00AA66; } 

If it helps the top button is generated from rails .erb extension

<%= button_to "Ok", root_path, :method => :get %> 

Help me to get my top button look like bottom button. I've tried to put in code that disable shadows in CSS, but it didn't work :(

like image 213
LarsChung Avatar asked Sep 08 '15 13:09

LarsChung


People also ask

How do I remove a button shadow in bootstrap?

Use the . shadow-none class in Bootstrap to remove shadow.

How do I get rid of shadows on Android?

If you want an Android app to remove shadow from photo, you can use Remove Unwanted Content. Just like other apps, this app offers two selection tools including the lasso and brush tools which allows you to select the shadow areas from your image.

How do you make a button border invisible?

You can make a button without borders in HTML. To remove them, you have to use the border property in CSS and set it to none.


1 Answers

Use border-style:

.signup-success input[type="submit"], .signup-success input[type="submit"]:active, .signup-success input[type="submit"]:focus {   width: 80%;   background: transparent;   color: #00AA66;   border-color: #00AA66;   border-style: solid; } 

or combined version (border-style, border-width and border-color in one):

border: 2px solid #00AA66; 
like image 138
Jevgenijs Šulins Avatar answered Oct 21 '22 03:10

Jevgenijs Šulins