CSS

02 | Button with Hover Effect

#btn-upload {
  background-color: #4CAF50;
  border: none;
  color: white;
  padding: 12px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 18px;
  width: 160px;
  margin:20px auto;
  cursor: pointer;
  border-radius: 2px 2px;
  
  box-shadow: -3px 4px 2px -1px rgba(0, 0, 0, 0.3);
  -webkit-transition: all .1s ease;
  -moz-transition: all .1s ease;
  transition: all .1s ease;
  -ms-transition: all .1s ease;
  -o-transition: all .1s ease;
}

#btn-upload:hover {  
  box-shadow: -2px 2px 2px 0px rgba(0, 0, 0, 0.1);
}

01 | min-width

#container {
    min-width:300px;
    width: auto !important;
    width:300px;
}
Advertisements