Removing the shadow from a button

LarsChung

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 :(

Jevgenijs Šulins

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;

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Removing shadow from button WPF

From Java

Removing the drop shadow from a Scaffold AppBar in Flutter?

From Dev

Removing default shadow from search box

From Dev

Removing box shadow from element using jquery

From Dev

Removing box shadow from element using jquery

From Dev

Removing up button from Actionbar

From Dev

CSS triangle and box shadow removing from a specific area

From Dev

Removing the shadow created by a dialog

From Dev

iOS - Removing UITabBarViewController Shadow

From Dev

Removing button from Angularjs UI bootstrap datepicker

From Dev

Removing padding from toggle button in Android

From Dev

Removing Item From Basket Opencart Custom button

From Dev

Removing image from button misplaces text

From Dev

Removing the cancel button from Custom camera

From Dev

Removing the little box from a toggle button

From Dev

Removing button from Angularjs UI bootstrap datepicker

From Dev

Removing Item From Basket Opencart Custom button

From Dev

Removing image from button misplaces text

From Dev

Removing the 'selection' from a radio button in a listview control

From Dev

Removing the little box from a toggle button

From Dev

Removing item from Datagrid view with delete button

From Dev

Remove shadow from ActiveX Option Button in Excel 2010 VBA

From Dev

Removing Bottom Shadow Bootstrap Navbar

From Dev

Removing bottom shadow on ActionBar - Android

From Dev

Android - removing shadow on pressed animation

From Dev

Django 1.7 removing Add button from inline form

From Dev

Removing clone button from the parent div and updating code

From Dev

removing one pixel "border-radius" from button link

From Dev

Removing checkboxes from local storage with 'Unselect All' button

Related Related

HotTag

Archive