Skip to content

Instantly share code, notes, and snippets.

@mhekel
Created September 1, 2022 06:02
Show Gist options
  • Select an option

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

Select an option

Save mhekel/77e93cdd03f0eb6f3b1633db84fed92d to your computer and use it in GitHub Desktop.
cards
/**
* cards */
.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;
}
.img-card {box-shadow: 5px 2px 14px rgba(0, 0, 0, 0.2), -4px 6px 14px #a5a5a5;
padding: 10px;
border: 1px solid black;
max-width:250px;
margin: auto;
}
.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 class="card">
<img src="http://images.kwmhventures.com/011b24291cc6b3d2519020d4e8f134510ef4e6cfe5.jpg" alt="ashphalt assaults" class="img-card">
<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