Skip to content

Instantly share code, notes, and snippets.

@mhekel
Created August 26, 2022 23:35
Show Gist options
  • Select an option

  • Save mhekel/c81ed72aadd2bf8998ecac09cf1dce07 to your computer and use it in GitHub Desktop.

Select an option

Save mhekel/c81ed72aadd2bf8998ecac09cf1dce07 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
div {margin-left:120px;
}
.card {
box-shadow: 5px 2px 14px rgba(0, 0, 0, 0.2), -4px 6px 14px #a5a5a5;
max-width: 300px;
margin: auto;
text-align: center;
font-family: arial;
float:left;
}
.price {
color: grey;
font-size: 22px;
}
.card button {
border: none;
outline: 0;
padding: 12px;
color: white;
background-color: #000;
text-align: center;
cursor: pointer;
width: 100%;
font-size: 18px;
}
.card button:hover {
opacity: 0.7;
}
<h2 style="text-align:center">Product Card</h2>
<div>
<div>
<div class="card">
<img src="/w3images/jeans3.jpg" alt="Denim Jeans" style="width:100%">
<h1>Tailored Jeans</h1>
<p class="price">$19.99</p>
<p>Some text about the jeans. Super slim and comfy lorem ipsum lorem jeansum. Lorem jeamsun denim lorem jeansum.</p>
<p><button>Add to Cart</button></p>
</div></div>
<div class="card">
<img src="/w3images/jeans3.jpg" alt="Denim Jeans" style="width:100%">
<h1>Tailored Jeans</h1>
<p class="price">$19.99</p>
<p>Some text about the jeans. Super slim and comfy lorem ipsum lorem jeansum. Lorem jeamsun denim lorem jeansum.</p>
<p><button>Add to Cart</button></p>
</div>
// alert('Hello world!');
{"view":"separate","fontsize":"100","seethrough":"1","prefixfree":"","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment