CSS Button with Background Image | Plantpot

CSS Button with Background Image

Web Dev
Sponsored links


Full Screen


Sponsored links




<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>CSS Button with Background Image</title>
    <link rel="stylesheet" type="text/css" href="https://demo.plantpot.works/assets/css/normalize.css">
    <link rel="stylesheet" href="https://use.typekit.net/opg3wle.css">
    <link rel="stylesheet" type="text/css" href="style.css">
    <div id="container">


@charset "utf-8";
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
html {
  font-size: 16px;
body {
  font-family: futura-pt, sans-serif;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
#container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
button {
  width: 240px;
  height: 60px;
  border: none;
  border-radius: 4px;
  background-image: url(marble.jpg);
  color: #fff;
  font-size: 1.75rem;
  letter-spacing: 2px;
  outline: none;
  cursor: pointer;