truncate-card.html 2.6 KB

12345
  1. <!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
  2. <style>*{box-sizing:border-box}body{margin:0;font:16px/1.5 sans-serif;color:#111}main{max-width:1000px;margin:0 auto;padding:24px}
  3. .grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}.card{display:block;border:1px solid #ccc;padding:16px;color:inherit;text-decoration:none}
  4. .card h3,.card p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 8px}</style></head><body><main><h1>Work</h1>
  5. <div class="grid"><a class="card" href="#p0"><h3>Project 0: a long title for the northwind holdings rebrand that wraps past two lines</h3><p>The client wants a full rebrand including packaging for twelve products, a new website, store signage and a launch event plan.</p></a><a class="card" href="#p1"><h3>Project 1: a long title for the northwind holdings rebrand that wraps past two lines</h3><p>The client wants a full rebrand including packaging for twelve products, a new website, store signage and a launch event plan.</p></a><a class="card" href="#p2"><h3>Project 2: a long title for the northwind holdings rebrand that wraps past two lines</h3><p>The client wants a full rebrand including packaging for twelve products, a new website, store signage and a launch event plan.</p></a><a class="card" href="#p3"><h3>Project 3: a long title for the northwind holdings rebrand that wraps past two lines</h3><p>The client wants a full rebrand including packaging for twelve products, a new website, store signage and a launch event plan.</p></a><a class="card" href="#p4"><h3>Project 4: a long title for the northwind holdings rebrand that wraps past two lines</h3><p>The client wants a full rebrand including packaging for twelve products, a new website, store signage and a launch event plan.</p></a><a class="card" href="#p5"><h3>Project 5: a long title for the northwind holdings rebrand that wraps past two lines</h3><p>The client wants a full rebrand including packaging for twelve products, a new website, store signage and a launch event plan.</p></a><a class="card" href="#p6"><h3>Project 6: a long title for the northwind holdings rebrand that wraps past two lines</h3><p>The client wants a full rebrand including packaging for twelve products, a new website, store signage and a launch event plan.</p></a><a class="card" href="#p7"><h3>Project 7: a long title for the northwind holdings rebrand that wraps past two lines</h3><p>The client wants a full rebrand including packaging for twelve products, a new website, store signage and a launch event plan.</p></a></div></main></body></html>