2017-06-29 9 views
-1

私はCSSで新しいです。私のボタン用のCSSはここにありますが、緑の背景のない画像のボタンと似ている必要があります。私が色々な問題を抱えているのは、私が非常に感謝してくれるよう助けることができる場合です。ボタンの色エラー

.button { 
 
    background-color:#333; 
 
    font-family: Arial; 
 
    color: white; 
 
    padding: 15px 32px; 
 
    text-align: center; 
 
    text-decoration: none; 
 
    display: inline-block; 
 
    font-size: 16px; 
 
    margin: -5px 0 0 100px; 
 
    cursor: pointer; 
 
    font-weight: bold; 
 
    align-items:center; 
 
    -moz-border-radius: 10px; 
 
    -webkit-border-radius: 10px; 
 
    border:1px solid #333; 
 
    border-bottom-width: 3px; 
 
    -webkit-box-shadow: 2px 5px 3px 2px #333; 
 
    -moz-box-shadow: 2px 5px 3px 2px #333; 
 
    box-shadow: 2px 5px 3px 2px #333; 
 
}
<button class="button">Access our old platform</button>

Image of button without the background

答えて

2

<!DOCTYPE html> 
 
<html> 
 
<head> 
 
    <meta charset="utf-8"> 
 
    <meta name="viewport" content="width=device-width"> 
 
    <title>JS Bin</title> 
 
    <style> 
 
    button { 
 
    background-color:#333; 
 
    font-family: Arial; 
 
    color: white; 
 
    padding: 18px 32px; 
 
    text-align: center; 
 
    text-decoration: none; 
 
    display: inline-block; 
 
    font-size: 16px; 
 
    margin: -5px 0 0 100px; 
 
    cursor: pointer; 
 
    font-weight: bold; 
 
    align-items:center; 
 
    -webkit-border-radius: 10px; 
 
    border:1px solid #333; 
 
    border-bottom-width: 3px; 
 
    box-shadow: 2px 5px 3px 2px #333; 
 
} 
 
    </style> 
 
</head> 
 
<body> 
 
<div> 
 
    <button classname="button">Access our old platform</button> 
 
    </div> 
 
</body> 
 
</html>

+1

私のために働くことに感謝します。 –

3

.button { 
 
    background: linear-gradient(to bottom, #55585e 0%,#28343b 100%); 
 
    font-family: Arial; 
 
    color: white; 
 
    padding: 15px 32px; 
 
    font-size: 16px; 
 
    cursor: pointer; 
 
    font-weight: bold; 
 
    border-radius: 10px; 
 
}
<button class="button">Access our old platform</button>

関連する問題