Creating scaleable SVG file folder tabs

In the actual html you posted above you have this rule which has a height set.

.parch {
      background-image: url('https://lh3.googleusercontent.com/pw/AP1GczOlyEgE-HLy3sGvlpsiiifoiEukf6i8ndkMD7oCPa-eMu7cHQscoSXEzAog6iNXvAFuF-JApkkfxSIz6_kA9Ro1-1aTzsWoLebvmCQB5TKPgdC80A=w1080-h1620');
      width: 1080px;
      height: 1620px;
      padding-top: 3.13rem;
}

That example has a better repeating background though so you could just remove the height.

The shape outside on Merton won’t work because of the cross origin problem you already know about.

I don’t want the parchment repeating; I want it streeeeeeeetching.

You need background-size:cover to make the image cover the area. You don’t really want to stretch an image without maintaining its aspect ratio.

   .parch {
      background-image: url('https://lh3.googleusercontent.com/pw/AP1GczOlyEgE-HLy3sGvlpsiiifoiEukf6i8ndkMD7oCPa-eMu7cHQscoSXEzAog6iNXvAFuF-JApkkfxSIz6_kA9Ro1-1aTzsWoLebvmCQB5TKPgdC80A=w1080-h1620');
      width: 1080px;
      /*height: 1620px;*/
      padding-top: 3.13rem;
      background-size:cover;
    }

Paul. This is too much drama. For me, for you, for everyone. I’m designing a long parchment that will take the entire poem and I’ll hunt down an ellipse that isn’t so persnickety. The minute we stretch this bad boy those dark spots grow and enlarge as well and it just got to be too much. I tried indenting those first two stanzas and then applying the ellipse but as you no doubt know that won’t work. It would have looked forced anyway.

What I’ve done is go back to the original parchment-a (which was actually a landscape mode 1080px wide!) and tweaking the burnishing I got a nice 3400px-long by 1080px wide graphic with no burnishing intruding on the poem. If you look really closely you can see where I added burnishing to the left edge but for my little poem it’s more than satisfactory.

Because I feel strongly that the poem gains something by those two ellipses you just made which are perfect btw, I’m going to leave them in . . . but they’re going to have a more forgiving parchment! The poem gently ebbs and flows with these two stanzas curled in and I feel new depth and meaning are the direct result. I really do. So let me fine tune the graphic and I’ll upload it to Nekoweb and then to the other thread. I would not have all your hard work go to naught. Meet you there . . .

Well I’m almost done with my 2-tab Merton. There is a white bar dividing my group “contact” and the main body (poor choice of words) main content and I can’t find it anywhere. Where is it Paul? Can you find it? Calling it a morning. I’ll check in in a bit. Thank you. Here it is:

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Solway:wght@300;400;500;700;800&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Crete+Round:ital@0;1&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Henny+Penny&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Special+Elite&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Uncial+Antiqua&display=swap" rel="stylesheet">

  <title>999 svgpar2b_ani.html &#7172; by semicodin &#47; with Huge Assistance from Paul O&rsquo;Brien and &lsquo;Deep Archibald&rsquo; of Sitepoint Forums</title>

  <style>
    body {
      width: 1080px;
      margin: 0;
      font-family: 'solway', serif;
      font-size: 2rem;
      line-height: 2.13rem;
      font-weight: 600;
      color: black;
    }

    p {
      line-height: 1;
      margin-top: 1rem;
    }

    u {
      text-decoration: underline
    }

    * {
      box-sizing: border-box
    }

    .dblue {
      color: dodgerblue
    }

    .crim {
      color: crimson
    }

    .roon {
      color: #c40000
    }

    .parch {
      background-image: url('https://lh3.googleusercontent.com/pw/AP1GczOlyEgE-HLy3sGvlpsiiifoiEukf6i8ndkMD7oCPa-eMu7cHQscoSXEzAog6iNXvAFuF-JApkkfxSIz6_kA9Ro1-1aTzsWoLebvmCQB5TKPgdC80A=w1080-h1620');
      width: 100%;
      height: 100%;
      padding-top: 3.13rem;
      background-size: cover;
    }

    .ssz1 {
      padding: 4rem 0 0 0;
      text-align: center;
      font-family: 'crete round';
      font-size: 2rem;
      line-height: 2.25rem;
      font-weight: bold;
      color: #888888;
    }

    .ssz2 {
      text-align: center;
      padding: 0 0 0 0;
      font-family: 'crete round';
      font-size: 1.75rem;
      line-height: 2rem;
      font-weight: bold;
      color: #888888;
    }

    .leada {
      color: blue;
      margin: 3.13rem 0 3.13rem 0;
      text-align: center;
      font-family: 'solway', serif;
      font-weight: bold;
      font-size: 3rem;
      line-height: 3.25rem;
    }

    .leadb {
      text-allign: center;
      font-family: 'solway', serif;
      font-weight: 400;
      font-size: 2.5rem;
      line-height: 3rem;
    }

    .leadc {
      text-align: center;
      font-style: normal;
      margin-bottom: 2.5rem;
      font-family: 'solway', serif;
      font-weight: 400;
      font-size: 2rem;
      line-height: 2.5rem;
    }

    .rip {
      margin: 0 auto;
      font-style: normal;
      color: black;
      font-family: 'solway', serif;
      font-size: 5rem;
      line-height: 1.1;
      font-weight: bold;
    }

    .begin {
      margin: 1.57rem 5% 0rem 5%;
      font-style: normal;
      text-align: center;
      color: black;
      font-family: 'Uncial Antiqua', serif;
      font-size: 6rem;
      line-height: 1.02;
      font-weight: bold;
    }

    .up {
      text-align: left;
      color: black;
      font-family: 'Uncial Antiqua', serif;
      font-size: 4.5rem;
      font-weight: bold;
    }

    .death {
      margin-top: 1.57rem;
      margin-left: 5%;
      margin-right: 5%;
      margin-bottom: 2.5rem;
      font-style: normal;
      text-align: left;
      color: black;
      font-family: 'solway', serif;
      font-size: 3.25rem;
      line-height: 1.1;
      font-weight: bold;
    }

    .main {
      margin: 7rem 3.13rem 7rem 3.13rem;
      background-color: #ffffee;
      font-style: italic;
      text-align: left;
      color: black;
      font-family: 'solway', serif;
      font-size: 2.25rem;
      line-height: 2.38rem;
      font-weight: bold;
    }

    .thomas {
      float: left;
      width: 800px;
      height: 1215px;
      margin: 2rem 0 0 -3rem;
      position: relative;
      /* courtesy “snadyleiby” of Sitepoint forums */
      left: -1.25rem;
      shape-outside: url(https://semicodin.nekoweb.org/origin/merton1215.png);
      shape-margin: 1.25rem;
    }

    .cent {
      text-align: center
    }

    .undr {
      text-decoration: underline
    }

    .clambu4 {
      color: blue;
      font-style: italic;
      font-family: roboto, sans-serif;
      font-size: 4rem;
      font-weight: 900;
    }

    .clamcin {
      color: #611205;
      font-style: italic;
      font-family: roboto, sans-serif;
      font-size: 3rem;
      font-weight: 900;
    }

    .henpen {
      text-align: center;
      color: black;
      margin-top: 3.13rem;
      font-size: 3.75rem;
      line-height: 3.88rem;
      font-weight: 700;
      font-family: 'Henny Penny', cursive;
    }

    /* ━━━━━━━━━━ COLORS ━━━━━━━━━━━ */
    .blu {
      color: blue
    }

    .blub {
      color: blue;
      font-weight: bold;
    }

    .fusch {
      color: #ca009b
    }

    .fuschb {
      color: #ca009b;
      font-weight: bold
    }

    .fuschi {
      color: #ca009b;
      font-style: italic
    }

    .crim {
      color: crimson
    }

    .crimb {
      color: crimson;
      font-weight: bold
    }

    .crimi {
      color: crimson;
      font-style: italic
    }

    .grey {
      color: grey
    }

    .green {
      color: #248900
    }àà

    /* green */
    .greenb {
      color: #248900;
      font-weight: bold
    }

    .hilite {
      color: #ffffee;
      background-color: dodgerblue;
      vertical-align: baseline;
      padding: .5rem .6rem .4rem .7rem;
      font-family: 'solway', serif;
      font-size: 2.25rem;
      line-height: 1.02;
      font-weight: 800;
    }

    /* ━━━━━━━━━ LINKS ━━━━━━━━━━━ */
    .ctr {
      text-align: center
    }

    .undr {
      text-decoration: underline
    }

    .clamgy {
      color: #888888;
      font-style: italic;
      font-family: roboto, sans-serif;
      font-size: 2.69rem;
      font-weight: 900;
    }

    .clamcr4 {
      color: crimson;
      font-style: italic;
      font-family: roboto, sans-serif;
      font-size: 4rem;
      font-weight: 900;
    }

    .clambu {
      color: blue;
      font-style: italic;
      font-family: roboto, sans-serif;
      font-size: 3rem;
      font-weight: 900;
    }

    .contact {
      margin: 0;
      padding: 0rem 0rem 7rem 0rem;
      background-color: black;
      font-style: normal;
      text-align: center;
      color: black;
      font-family: 'solway', serif;
      font-size: 2.25rem;
      line-height: 2.38rem;
      font-weight: bold;
    }

    .here {
      color: #ffffee;
      text-align: center;
      padding-top: 5rem;
      margin: 0rem 0 1rem 0;
      font-family: 'solway', serif;
      font-size: 4rem;
      line-height: 1.1;
      font-weight: bold;
    }

    .down {
      color: #ffffee;
      text-align: center;
      margin: 0 0 1rem 0;
      font-family: 'solway', serif;
      font-size: 3rem;
      line-height: 1.1;
      font-weight: 700;
    }

    .thanks {
      color: #ffffee;
      text-align: center;
      margin: 0rem 4rem 1rem 4rem;
      font-family: 'solway', serif;
      font-size: 2rem;
      line-height: 1.02;
      font-weight: bold;
    }

    .quest {
      color: #ffffee;
      text-align: center;
      margin: 2.25rem 2rem 2.25rem 2rem;
      font-family: 'solway', serif;
      font-size: 3rem;
      line-height: 1.05;
      font-weight: bold;
    }

    .end {
      color: #ffffee;
      text-align: center;
      margin: 1rem 4rem 2.5rem 4rem;
      font-family: 'solway', serif;
      font-size: 2rem;
      line-height: 1.02;
      font-weight: bold;
    }

    .clamiv35 {
      color: #ffffee;
      font-style: italic;
      font-family: roboto, sans-serif;
      font-size: 3.5rem;
      font-weight: 900;
    }

    a:active {
      color: crimson
    }

    a:hover {
      color: crimson
    }

    a:link {
      color: #ffffee
    }

    a:visited {
      color: #ffffee
    }

    /* ▬▬▬▬ PAUL’S TABS Courtesy PAUL O’BRIEN of Sitepoint ▬▬▬▬ */
    .tablabel3 {
      position: relative;
      text-align: center;
      border-radius: 20px 20px 0px 0px;
      color: black;
      padding: 1rem 1rem 0;
      font-size: 2.25rem;
      line-height: 1.5;
      font-weight: bold;
      height: 67px;
      width: 250px;
      filter: drop-shadow(-3px 0px var(--border-color)) drop-shadow(3px 0px var(--border-color));
    }

    .tab {
      display: flex;
      max-width: 950px;
      margin: auto;
      overflow: hidden;
      position: relative;
      z-index: 1;
      filter: drop-shadow(0px -5px var(--border-color));
      border-bottom: 10px solid var(--bottom-border-color);
    }

    .tab:after,
    .tab:before {
      content: "";
      position: relative;
      z-index: 2;
      flex: 1;
      /*box-shadow: 0 34px var(--tab2color);*/
      box-shadow: 0 34px rgba(221, 198, 136, 0.8);
      /* Try and match a color from the image*/
      mix-blend-mode: lighten;
      /* merge the box shadow above with the background */
      /* this is necessary or a gap will show */
    }

    .tab:before {
      box-shadow: 0 34px rgb(0, 0, 0, 0.8)
    }

    .tab:after {
      border-radius: 0 0 0 80px;
      margin-left: -9px;
    }

    .tab:before {
      border-radius: 0 0 80px 0;
      margin-right: -9px;
    }

    .tablabel3:before {
      content: "";
      pointer-events: none;
      position: absolute;
      inset: 0 0 0 0;
      z-index: -1;
      background: var(--tab2color) url("https://semicodin.nekoweb.org/pics/parchment-a.jpg");
      background-position: -3px -8px;
      transform: perspective(100px) rotateX(36deg) translateY(5px);
      border-radius: 20px 20px 0 0;
    }

    .bkdimg {
      position: relative;
      background: none;
      overflow: hidden;
      margin-top: 1rem;
      margin-bottom: -2px;
      /* attempt to stop rounding errors when zoomed*/
    }

    .ctr {
      pointer-events: none;
    }

    .ctr a {
      pointer-events: initial;
    }

    .ctr {
      position: absolute;
      inset: 0 0 0 0;
    }

    .ctr2 {
      -index: 3;
    }

    .ctrmid {
      z-index: 2;
    }

    .ctr3 {
      z-index: 1;
    }

    .ctr2 .tab:before {
      flex: 0 0 65px;
    }

    .ctr3 .tab:after {
      flex: 0 0 65px;
    }

    .tab1active .ctr,
    .tab2active .ctr,
    .tab3active .ctr {
      position: absolute;
    }

    .tab1active .ctr2,
    .tab2active .ctrmid,
    .tab3active .ctr3 {
      position: relative;
      z-index: 4;
    }

    .tab3active .ctr2 {
      z-index: 1;
    }

    /* set color for 1 tab only */
    .svgtabs.onetab {
      --tab1-bg-color: #8e815e;
    }

    .svgtabs.onetab span {
      --tab1-color: #000;
    }

    .svgtabs {
      width: 100%;
      margin: auto;
      display: flex;
      overflow: hidden;
      border-bottom: 10px solid #000;
    }

    .svgtabs a {
      color: #000;
      text-decoration: none;
      flex: 1 0 0;
      display: grid;
      align-items: center;
      grid-template-areas: "tab";
      position: relative;
      text-align: center;
      margin-right: -9rem;
      transition: 0.3s ease;
    }

    .svgtabs.twotab a {
      margin-right: -9.5rem;
    }

    .svgtabs a:last-child {
      margin-right: 0 !important;
    }

    .svgtabs svg {
      width: 245px;
      height: 53px;
      display: block;
      grid-area: tab;
      position: relative;
      z-index: 1;
    }

    .svgtabs.twotab svg {
      width: 620px;
      height: 75px;
    }

    .svgtabs span {
      grid-area: tab;
      position: relative;
      z-index: 2;
      padding: 11px 2rem 0 0;
      font-family: 'solway', serif;
      font-size: 3rem;
      font-weight: bold;
      color: #000;
    }

    .svgtabs a.active {
      z-index: 99;
    }

    .svgtabs a.active span {
      padding: 11px 1rem 0;
    }

    .svgtabs a.active span {
      padding: 11px 1rem 0;
    }

    .svgtabs a:last-child span {
      padding: 11px 1rem 0;
    }

    .hide-svg {
      position: fixed;
      left: -100vw;
      top: -100vh;
      height: 1px;
      width: 1px;
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
    }

    .tab-animated {
      height: 220px;
      animation: tab 10s infinite;
    }

    @keyframes tab {
      0% {
        height: 220px;
        width: 210px;
      }

      50% {
        height: 200px;
        width: 170px;
      }

      100% {
        height: 220px;
        width: 210px;
      }
    }

    .svgtab1 {
      z-index: 2;
    }

    .svgtab2 {
      z-index: 1;
    }

    /* ━━━━━━ TAB LABELS ━━━━━━ */
    .tab a {
      transform: translateY(-8px);
      display: flex;
      text-align: center;
      justify-content: center;
    }

    .tab a:link {
      color: black;
      font-weight: bold;
    }

    .tab a:visited {
      color: black;
      font-weight: bold;
    }

    /* ▬▬▬▬▬▬ END CSS ▬▬▬▬▬▬ */
  </style>
</head>

<body>

  <nav class="svgtabs twotab">

    <!--━━━━━━━━━ TAB 1 ━━━━━━━━-->
    <a class="svgtab1" href="http://semicodin.nekoweb.org/h_thru_z/svgpar2a_ani.html">
      <span>&nbsp;&nbsp;&nbsp;Merton&rsquo;s America</span>
      <svg viewBox="0 0 164.042 15.843" xmlns="http://www.w3.org/2000/svg">
        <use href="#cutetab-large" />
      </svg>
    </a>

    <!--━━━━━━━━━ TAB 2 ━━━━━━━━-->
    <a class="svgtab2" href="http://semicodin.nekoweb.org/h_thru_z/svgpar2b_ani.html">
      <span>Assassination!</span>
      <svg viewBox="0 0 164.042 15.843" xmlns="http://www.w3.org/2000/svg">
        <use href="#cutetab-large" />
      </svg>
    </a>

  </nav>

  <div class="parch">

    <div class="begin">
      The Assassination of Thomas Merton
    </div>

    <div class="cent">
      <table class="rip">
        <tbody>
          <tr>
            <td>1915</td>
            <td>
              <img src="https://lh3.googleusercontent.com/pw/AP1GczNK01urgiwZ_soZQU-12U29Siu-4J37H-ZvpeC3gKfz0IzceW35to0b8q7EjDHp2nXfNaPSfc1Dwary6KUrjiDl-Ldxj4xRRi9umxtZJwgtJjXgxA=w200-h300" alt="">
            </td>
            <td>1968</td>
          </tr>
        </tbody>
      </table>
    </div><!-- closing cent -->

    <div class="death">
      <p> <span class="up">On December 10, 1968</span> Thomas Merton was at a Red Cross retreat facility named Sawang Khaniwat in Samut Prakan, a province near Bangkok, Thailand, attending a monastic conference. After giving a talk at the morning session, he was found dead later in the afternoon in the room of his cottage, wearing only shorts, lying on his back with a short-circuited Hitachi floor fan lying across his body. His associate, Jean Leclercq, stated: &ldquo;In all probability the death of Thomas Merton was due in part to heart failure, in part to an electric shock.&rdquo;
      </p>

      <p>
        <span class="roon">Since there was no autopsy, there was no suitable explanation for the wound in the back of Merton&rsquo;s head, &ldquo;which had bled considerably.&rdquo;</span> Arriving from the cottage next to Merton&rsquo;s, the Primate of the Benedictine order and presiding officer of the conference, Rembert Weakland, anointed Merton.
      </p>

      <p>
        He was 53 years old.
      </p>

      <p>
        His body was flown back to the United States on board a U.S. military aircraft returning from Vietnam. He is buried at Our Lady of Gethsemani Abbey in Bardstown, Kentucky.
      </p>

      <p>
        In 2018, Hugh Turley and David Martin published <i>&ldquo;The Martyrdom of Thomas Merton: An Investigation,&rdquo;</i> presenting the evidentiary record&rsquo;s refutation of claims of accidental electrocution, and suggesting Merton was assassinated for his political opposition to the Vietnam War. A subsequent book by Turley and author John Howard Griffin &mdash; <i><span class="undr">Thomas Merton&rsquo;s Betrayers: The Case Against Abbot James Fox</span></i> &mdash; presents documentary evidence of manipulation and coverup by the Catholic Church and Merton&rsquo;s political foes.
      </p>
      <p>
        The Spring 2024 issue of <i>The <img class="thomas" src="https://semicodin.nekoweb.org/origin/merton1215.png" alt="">Catholic Historical Review</i> published <i>&ldquo;The Official Thai Reports on Thomas Merton&rsquo;s Death.&rdquo;</i> The official cause of death was a natural cause: &ldquo;sudden heart failure,&rdquo; not &ldquo;accidental electrocu-tion.&rdquo; <span class="roon">The police report states that Merton was already dead before he came into contact with a faulty fan that was found lying across his body.</span>
      </p>
    </div><!-- closing death -->

    <div class="hide-svg">
      <!-- this one is for the one tab version and the two tab version -->
      <!-- large tab -->

      <svg viewBox="0 0 164.042 15.843" xmlns="http://www.w3.org/2000/svg">
        <defs>
          <g id="cutetab-large" class="tab-unit">
            <clipPath id="shape2">
              <path d="M121.772 232.987c-11.042 0-13.643 5.879-17.411 10.564-4.653 5.788-11.776 8.51-11.776 8.51h145.426s-7.123-2.722-11.776-8.51c-3.768-4.685-6.37-10.564-17.412-10.564Z" transform="translate(-83.277 -232.217)" />
            </clipPath>

            <path style="fill:#000;stroke-width:4;stroke:#000" d="M121.772 232.217c-5.022 0-8.508 1.208-11.179 3.182-2.67 1.974-4.52 4.54-6.502 7.008-3.962 4.935-8.28 9.653-20.814 9.653h11.356c5.25-1.985 8.309-5.303 10.882-8.509 2.017-2.511 3.785-4.923 6.166-6.683 2.382-1.76 5.38-2.823 10.091-2.823h87.051c4.711 0 7.71 1.062 10.091 2.823 2.382 1.76 4.15 4.172 6.166 6.683 2.574 3.206 5.633 6.524 10.882 8.51h11.357c-12.534 0-16.852-4.72-20.815-9.654-1.98-2.468-3.83-5.034-6.501-7.008-2.671-1.974-6.157-3.182-11.18-3.182Z" transform="translate(-83.277 -232.217)" />

            <image class="tab-animated tan1" transform="translate(00 0)" width="270" height="220" href="https://semicodin.nekoweb.org/pics/parchment-a.jpg" clip-path="url(#shape2)" />

          </g>
        </defs>
      </svg>
    </div>

  </div><!-- CONCLUDING MAIN -->
  </div><!-- CONCLUDING PARCHMENT-E -->

  <div class="contact">

    <div class="here">
       <a href="https://semicodin.nekoweb.org/vault/SVGPAR1_ANI.ZIP">
          Code Here.</a>
    </div>

    <div class="down">
      Long Press on &ldquo;Download Link&rdquo; and save.
    </div>

    <div class="quest">
      Got Questions? You can PM me at<br>
      <a href="https://sitepoint.com/community/c/html-css/25">
          the Sitepoint Forums</a><span class="clamiv35">!</span>
    </div>

    <div class="end">
      CLICK HERE TO PROCEED<br>
        <a href="https://semicodin.nekoweb.org/toc.html">
          TO THE TABLE OF CONTENTS</a>
    </div>

  </div><!-- CLOSING CONTACT -->

</body>
</html>

The white above the black section is the body background showing through due to the bottom margin on the death element and the bottom margin on the last p element.

This should remove it.

 .death,
.death p:last-child{
    margin-bottom:0;
 }
1 Like

Brilliant Maestro! I wonder why I didn’t spot it myself. But this phone. Arrrgh! I can’t see things the way I can with a desktop monitor. It’s very frustrating. Thank you Paul.

1 Like

Paul I’m sorry to be bringing up Merton yet one more time but this is important: I had Merton’s graphic all the way flush with the left edge of the page but somewhere along the line he moved into the flow and is now sticking out and completely throwing the shape-outside: (URL) off! You can see him here. How can I get him back to the left edge? Thank you Paul.

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Solway:wght@300;400;500;700;800&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Crete+Round:ital@0;1&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Henny+Penny&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Special+Elite&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Uncial+Antiqua&display=swap" rel="stylesheet">

  <title>svgpar2_ani.html &#7172; by semicodin &#47; with Huge Assistance from Paul O&rsquo;Brien and &lsquo;Deep Archibald&rsquo; of Sitepoint Forums</title>

  <style>
    body {
      width: 1080px;
      margin: 0;
      font-family: 'solway', serif;
      font-size: 2rem;
      line-height: 2.13rem;
      font-weight: 600;
      color: black;
    }

    p {
      line-height: 1;
      margin-top: 1rem;
    }

    u {
      text-decoration: underline
    }

    * {
      box-sizing: border-box
    }

    .dblue {
      color: dodgerblue
    }

    .crim {
      color: crimson
    }

    .roon {
      color: #c40000
    }

    .parch {
      background-image: url('https://lh3.googleusercontent.com/pw/AP1GczOlyEgE-HLy3sGvlpsiiifoiEukf6i8ndkMD7oCPa-eMu7cHQscoSXEzAog6iNXvAFuF-JApkkfxSIz6_kA9Ro1-1aTzsWoLebvmCQB5TKPgdC80A=w1080-h1620');
      width: 100%;
      height: 100%;
      padding-top: 3.13rem;
      background-size: cover;
    }

    .ssz1 {
      padding: 4rem 0 0 0;
      text-align: center;
      font-family: 'crete round';
      font-size: 2rem;
      line-height: 2.25rem;
      font-weight: bold;
      color: #888888;
    }

    .ssz2 {
      text-align: center;
      padding: 0 0 0 0;
      font-family: 'crete round';
      font-size: 1.75rem;
      line-height: 2rem;
      font-weight: bold;
      color: #888888;
    }

    .leada {
      color: blue;
      margin: 3.13rem 0 3.13rem 0;
      text-align: center;
      font-family: 'solway', serif;
      font-weight: bold;
      font-size: 3rem;
      line-height: 3.25rem;
    }

    .leadb {
      text-align: center;
      font-family: 'solway', serif;
      font-weight: 400;
      font-size: 2.5rem;
      line-height: 3rem;
    }

    .leadc {
      text-align: center;
      font-style: normal;
      margin-bottom: 2.5rem;
      font-family: 'solway', serif;
      font-weight: 400;
      font-size: 2rem;
      line-height: 2.5rem;
    }

    .rip {
      margin: 0 auto;
      font-style: normal;
      color: black;
      font-family: 'solway', serif;
      font-size: 5rem;
      line-height: 1.1;
      font-weight: bold;
    }

    .begin {
      margin: 1.57rem 5% 0rem 5%;
      font-style: normal;
      text-align: center;
      color: black;
      font-family: 'Uncial Antiqua', serif;
      font-size: 6rem;
      line-height: 1.02;
      font-weight: bold;
    }

    .up {
      text-align: left;
      color: black;
      font-family: 'Uncial Antiqua', serif;
      font-size: 4.5rem;
      font-weight: bold;
    }

    .death {
      margin-top: 1.57rem;
      margin-left: 5%;
      margin-right: 5%;
      font-style: normal;
      text-align: left;
      color: black;
      font-family: 'solway', serif;
      font-size: 3.25rem;
      line-height: 1.1;
      font-weight: bold;
    }
.dead {
      margin-bottom: 0;
      margin-left: 5%;
      margin-right: 5%;
      font-style: normal;
      text-align: left;
      color: black;
      font-family: 'solway', serif;
      font-size: 3.25rem;
      line-height: 1.1;
      font-weight: bold;
    }

    .main {
      margin: 7rem 3.13rem 7rem 3.13rem;
      background-color: #ffffee;
      font-style: italic;
      text-align: left;
      color: black;
      font-family: 'solway', serif;
      font-size: 2.25rem;
      line-height: 2.38rem;
      font-weight: bold;
    }

    .thomas {
      float: left;
      width: 800px;
      height: 1215px;
      margin: 2rem 0 0 -3rem;
      position: relative;
      /* courtesy “snadyleiby” of Sitepoint forums */
      left: -1.25rem;
      shape-outside: url(https://semicodin.nekoweb.org/origin/merton1215.png);
      shape-margin: 1.25rem;
    }

    .cent {
      text-align: center
    }

    .undr {
      text-decoration: underline
    }

    .clambu4 {
      color: blue;
      font-style: italic;
      font-family: roboto, sans-serif;
      font-size: 4rem;
      font-weight: 900;
    }

    .clamcin {
      color: #611205;
      font-style: italic;
      font-family: roboto, sans-serif;
      font-size: 3rem;
      font-weight: 900;
    }

    .henpen {
      text-align: center;
      color: black;
      margin-top: 3.13rem;
      font-size: 3.75rem;
      line-height: 3.88rem;
      font-weight: 700;
      font-family: 'Henny Penny', cursive;
    }

    /* ━━━━━━━━━━ COLORS ━━━━━━━━━━━ */
    .blu {
      color: blue
    }

    .blub {
      color: blue;
      font-weight: bold;
    }

    .fusch {
      color: #ca009b
    }

    .fuschb {
      color: #ca009b;
      font-weight: bold
    }

    .fuschi {
      color: #ca009b;
      font-style: italic
    }

    .crim {
      color: crimson
    }

    .crimb {
      color: crimson;
      font-weight: bold
    }

    .crimi {
      color: crimson;
      font-style: italic
    }

    .grey {
      color: grey
    }

    .green {
      color: #248900
    }àà

    /* green */
    .greenb {
      color: #248900;
      font-weight: bold
    }

    .hilite {
      color: #ffffee;
      background-color: dodgerblue;
      vertical-align: baseline;
      padding: .5rem .6rem .4rem .7rem;
      font-family: 'solway', serif;
      font-size: 2.25rem;
      line-height: 1.02;
      font-weight: 800;
    }

    /* ━━━━━━━━━ LINKS ━━━━━━━━━━━ */
    .ctr {
      text-align: center
    }

    .undr {
      text-decoration: underline
    }

    .clamgy {
      color: #888888;
      font-style: italic;
      font-family: roboto, sans-serif;
      font-size: 2.69rem;
      font-weight: 900;
    }

    .clamcr4 {
      color: crimson;
      font-style: italic;
      font-family: roboto, sans-serif;
      font-size: 4rem;
      font-weight: 900;
    }

    .clambu {
      color: blue;
      font-style: italic;
      font-family: roboto, sans-serif;
      font-size: 3rem;
      font-weight: 900;
    }

    .contact {
      margin: 0;
      padding: 0rem 0rem 7rem 0rem;
      background-color: black;
      font-style: normal;
      text-align: center;
      color: black;
      font-family: 'solway', serif;
      font-size: 2.25rem;
      line-height: 2.38rem;
      font-weight: bold;
    }

    .here {
      color: #ffffee;
      text-align: center;
      padding-top: 5rem;
      margin: 0rem 0 1rem 0;
      font-family: 'solway', serif;
      font-size: 4rem;
      line-height: 1.1;
      font-weight: bold;
    }

    .down {
      color: #ffffee;
      text-align: center;
      margin: 0 0 1rem 0;
      font-family: 'solway', serif;
      font-size: 3rem;
      line-height: 1.1;
      font-weight: 700;
    }

    .thanks {
      color: #ffffee;
      text-align: center;
      margin: 0rem 4rem 1rem 4rem;
      font-family: 'solway', serif;
      font-size: 2rem;
      line-height: 1.02;
      font-weight: bold;
    }

    .quest {
      color: #ffffee;
      text-align: center;
      margin: 2.25rem 2rem 2.25rem 2rem;
      font-family: 'solway', serif;
      font-size: 3rem;
      line-height: 1.05;
      font-weight: bold;
    }

    .end {
      color: #ffffee;
      text-align: center;
      margin: 1rem 4rem 2.5rem 4rem;
      font-family: 'solway', serif;
      font-size: 2rem;
      line-height: 1.02;
      font-weight: bold;
    }

    .clamiv35 {
      color: #ffffee;
      font-style: italic;
      font-family: roboto, sans-serif;
      font-size: 3.5rem;
      font-weight: 900;
    }

    a:active {
      color: crimson
    }

    a:hover {
      color: crimson
    }

    a:link {
      color: #ffffee
    }

    a:visited {
      color: #ffffee
    }

    /* ▬▬▬▬ PAUL’S TABS Courtesy PAUL O’BRIEN of Sitepoint ▬▬▬▬ */
    .tablabel3 {
      position: relative;
      text-align: center;
      border-radius: 20px 20px 0px 0px;
      color: black;
      padding: 1rem 1rem 0;
      font-size: 2.25rem;
      line-height: 1.5;
      font-weight: bold;
      height: 67px;
      width: 250px;
      filter: drop-shadow(-3px 0px var(--border-color)) drop-shadow(3px 0px var(--border-color));
    }

    .tab {
      display: flex;
      max-width: 950px;
      margin: auto;
      overflow: hidden;
      position: relative;
      z-index: 1;
      filter: drop-shadow(0px -5px var(--border-color));
      border-bottom: 10px solid var(--bottom-border-color);
    }

    .tab:after,
    .tab:before {
      content: "";
      position: relative;
      z-index: 2;
      flex: 1;
      /*box-shadow: 0 34px var(--tab2color);*/
      box-shadow: 0 34px rgba(221, 198, 136, 0.8);
      /* Try and match a color from the image*/
      mix-blend-mode: lighten;
      /* merge the box shadow above with the background */
      /* this is necessary or a gap will show */
    }

    .tab:before {
      box-shadow: 0 34px rgb(0, 0, 0, 0.8)
    }

    .tab:after {
      border-radius: 0 0 0 80px;
      margin-left: -9px;
    }

    .tab:before {
      border-radius: 0 0 80px 0;
      margin-right: -9px;
    }

    .tablabel3:before {
      content: "";
      pointer-events: none;
      position: absolute;
      inset: 0 0 0 0;
      z-index: -1;
      background: var(--tab2color) url("https://semicodin.nekoweb.org/pics/parchment-a.jpg");
      background-position: -3px -8px;
      transform: perspective(100px) rotateX(36deg) translateY(5px);
      border-radius: 20px 20px 0 0;
    }

    .bkdimg {
      position: relative;
      background: none;
      overflow: hidden;
      margin-top: 1rem;
      margin-bottom: -2px;
      /* attempt to stop rounding errors when zoomed*/
    }

    .ctr {
      pointer-events: none;
    }

    .ctr a {
      pointer-events: initial;
    }

    .ctr {
      position: absolute;
      inset: 0 0 0 0;
    }

    .ctr2 {
      -index: 3;
    }

    .ctrmid {
      z-index: 2;
    }

    .ctr3 {
      z-index: 1;
    }

    .ctr2 .tab:before {
      flex: 0 0 65px;
    }

    .ctr3 .tab:after {
      flex: 0 0 65px;
    }

    .tab1active .ctr,
    .tab2active .ctr,
    .tab3active .ctr {
      position: absolute;
    }

    .tab1active .ctr2,
    .tab2active .ctrmid,
    .tab3active .ctr3 {
      position: relative;
      z-index: 4;
    }

    .tab3active .ctr2 {
      z-index: 1;
    }

    /* set color for 1 tab only */
    .svgtabs.onetab {
      --tab1-bg-color: #8e815e;
    }

    .svgtabs.onetab span {
      --tab1-color: #000;
    }

    .svgtabs {
      width: 100%;
      margin: auto;
      display: flex;
      overflow: hidden;
      border-bottom: 10px solid #000;
    }

    .svgtabs a {
      color: #000;
      text-decoration: none;
      flex: 1 0 0;
      display: grid;
      align-items: center;
      grid-template-areas: "tab";
      position: relative;
      text-align: center;
      margin-right: -9rem;
      transition: 0.3s ease;
    }

    .svgtabs.twotab a {
      margin-right: -9.5rem;
    }

    .svgtabs a:last-child {
      margin-right: 0 !important;
    }

    .svgtabs svg {
      width: 245px;
      height: 53px;
      display: block;
      grid-area: tab;
      position: relative;
      z-index: 1;
    }

    .svgtabs.twotab svg {
      width: 620px;
      height: 75px;
    }

    .svgtabs span {
      grid-area: tab;
      position: relative;
      z-index: 2;
      padding: 11px 2rem 0 0;
      font-family: 'solway', serif;
      font-size: 3rem;
      font-weight: bold;
      color: #000;
    }

    .svgtabs a.active {
      z-index: 99;
    }

    .svgtabs a.active span {
      padding: 11px 1rem 0;
    }

    .svgtabs a.active span {
      padding: 11px 1rem 0;
    }

    .svgtabs a:last-child span {
      padding: 11px 1rem 0;
    }

    .hide-svg {
      position: fixed;
      left: -100vw;
      top: -100vh;
      height: 1px;
      width: 1px;
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
    }

    .tab-animated {
      height: 220px;
      animation: tab 10s infinite;
    }

    @keyframes tab {
      0% {
        height: 220px;
        width: 210px;
      }

      50% {
        height: 200px;
        width: 170px;
      }

      100% {
        height: 220px;
        width: 210px;
      }
    }

    .svgtab1 {
      z-index: 2;
    }

    .svgtab2 {
      z-index: 1;
    }

    /* ━━━━━━ TAB LABELS ━━━━━━ */
    .tab a {
      transform: translateY(-8px);
      display: flex;
      text-align: center;
      justify-content: center;
    }

    .tab a:link {
      color: black;
      font-weight: bold;
    }

    .tab a:visited {
      color: black;
      font-weight: bold;
    }

    /* ▬▬▬▬▬▬ END CSS ▬▬▬▬▬▬ */
  </style>
</head>

<body>

  <nav class="svgtabs twotab">

    <!--━━━━━━━━━ TAB 1 ━━━━━━━━-->
    <a class="svgtab1" href="http://semicodin.nekoweb.org/h_thru_z/svgpar2a_ani.html">
      <span>&nbsp;&nbsp;&nbsp;Merton&rsquo;s America</span>
      <svg viewBox="0 0 164.042 15.843" xmlns="http://www.w3.org/2000/svg">
        <use href="#cutetab-large" />
      </svg>
    </a>

    <!--━━━━━━━━━ TAB 2 ━━━━━━━━-->
    <a class="svgtab2" href="http://semicodin.nekoweb.org/h_thru_z/svgpar2b_ani.html">
      <span>Assassination!</span>
      <svg viewBox="0 0 164.042 15.843" xmlns="http://www.w3.org/2000/svg">
        <use href="#cutetab-large" />
      </svg>
    </a>

  </nav>

  <div class="parch">

    <div class="begin">
      The Assassination of Thomas Merton
    </div>

    <div class="cent">
      <table class="rip">
        <tbody>
          <tr>
            <td>1915</td>
            <td>
              <img src="https://lh3.googleusercontent.com/pw/AP1GczNK01urgiwZ_soZQU-12U29Siu-4J37H-ZvpeC3gKfz0IzceW35to0b8q7EjDHp2nXfNaPSfc1Dwary6KUrjiDl-Ldxj4xRRi9umxtZJwgtJjXgxA=w200-h300" alt="">
            </td>
            <td>1968</td>
          </tr>
        </tbody>
      </table>
    </div><!-- closing cent -->

    <div class="death">
      <p> <span class="up">On December 10, 1968</span> Thomas Merton was at a Red Cross retreat facility named Sawang Khaniwat in Samut Prakan, a province near Bangkok, Thailand, attending a monastic conference. After giving a talk at the morning session, he was found dead later in the afternoon in the room of his cottage, wearing only shorts, lying on his back with a short-circuited Hitachi floor fan lying across his body. His associate, Jean Leclercq, stated: &ldquo;In all probability the death of Thomas Merton was due in part to heart failure, in part to an electric shock.&rdquo;
      </p>

      <p>
        <span class="roon">Since there was no autopsy, there was no suitable explanation for the wound in the back of Merton&rsquo;s head, &ldquo;which had bled considerably.&rdquo;</span> Arriving from the cottage next to Merton&rsquo;s, the Primate of the Benedictine order and presiding officer of the conference, Rembert Weakland, anointed Merton.
      </p>

      <p>
        He was 53 years old.
      </p>

      <p>
        His body was flown back to the United States on board a U.S. military aircraft returning from Vietnam. He is buried at Our Lady of Gethsemani Abbey in Bardstown, Kentucky.
      </p>

      <p>
        In 2018, Hugh Turley and David Martin published <i>&ldquo;The Martyrdom of Thomas Merton: An Investigation,&rdquo;</i> presenting the evidentiary record&rsquo;s refutation of claims of accidental electrocution, and suggesting Merton was assassinated for his political opposition to the Vietnam War. A subsequent book by Turley and author John Howard Griffin &mdash; <i><span class="undr">Thomas Merton&rsquo;s Betrayers: The Case Against Abbot James Fox</span></i> &mdash; presents documentary evidence of manipulation and coverup by the Catholic Church and Merton&rsquo;s political foes.
      </p>
      <p class="dead">
        The Spring 2024 issue of <i>The <img class="thomas" src="https://semicodin.nekoweb.org/origin/merton1215.png" alt="">Catholic Historical Review</i> published <i>&ldquo;The Official Thai Reports on Thomas Merton&rsquo;s Death.&rdquo;</i> The official cause of death was a natural cause: &ldquo;sudden heart failure,&rdquo; not &ldquo;accidental electrocu-tion.&rdquo; <span class="roon">The police report states that Merton was already dead before he came into contact with a faulty fan that was found lying across his body.</span>
      </p>
    </div><!-- closing death -->

    <div class="hide-svg">
      <!-- this one is for the one tab version and the two tab version -->
      <!-- large tab -->

      <svg viewBox="0 0 164.042 15.843" xmlns="http://www.w3.org/2000/svg">
        <defs>
          <g id="cutetab-large" class="tab-unit">
            <clipPath id="shape2">
              <path d="M121.772 232.987c-11.042 0-13.643 5.879-17.411 10.564-4.653 5.788-11.776 8.51-11.776 8.51h145.426s-7.123-2.722-11.776-8.51c-3.768-4.685-6.37-10.564-17.412-10.564Z" transform="translate(-83.277 -232.217)" />
            </clipPath>

            <path style="fill:#000;stroke-width:4;stroke:#000" d="M121.772 232.217c-5.022 0-8.508 1.208-11.179 3.182-2.67 1.974-4.52 4.54-6.502 7.008-3.962 4.935-8.28 9.653-20.814 9.653h11.356c5.25-1.985 8.309-5.303 10.882-8.509 2.017-2.511 3.785-4.923 6.166-6.683 2.382-1.76 5.38-2.823 10.091-2.823h87.051c4.711 0 7.71 1.062 10.091 2.823 2.382 1.76 4.15 4.172 6.166 6.683 2.574 3.206 5.633 6.524 10.882 8.51h11.357c-12.534 0-16.852-4.72-20.815-9.654-1.98-2.468-3.83-5.034-6.501-7.008-2.671-1.974-6.157-3.182-11.18-3.182Z" transform="translate(-83.277 -232.217)" />

            <image class="tab-animated tan1" transform="translate(00 0)" width="270" height="220" href="https://semicodin.nekoweb.org/pics/parchment-a.jpg" clip-path="url(#shape2)" />

          </g>
        </defs>
      </svg>

  </div><!-- CONCLUDING MAIN -->
  </div><!-- CONCLUDING PARCHMENT-E -->

  <div class="contact">

    <div class="here">
       <a href="https://semicodin.nekoweb.org/vault/SVGPAR1_ANI.ZIP">
          Code Here.</a>
    </div>

    <div class="down">
      Long Press on &ldquo;Download Link&rdquo; and save.
    </div>

    <div class="quest">
      Got Questions? You can PM me at<br>
      <a href="https://sitepoint.com/community/c/html-css/25">
          the Sitepoint Forums</a><span class="clamiv35">!</span>
    </div>

    <div class="end">
      CLICK HERE TO PROCEED<br>
        <a href="https://semicodin.nekoweb.org/toc.html">
          TO THE TABLE OF CONTENTS</a>
    </div>

  </div><!-- CLOSING CONTACT -->

</body>
</html>

I believe in one of the other threads you removed the negative margin for some reason.

It should be about 6.5rem

.thomas {
    float: left;
    width: 800px;
    height: 1215px;
    margin: 2rem 0 0 -6.5rem;
    position: relative;
    /*left: -1.25rem; */
    shape-outside: url(https://semicodin.nekoweb.org/origin/merton1215.png);
    shape-margin: 1.25rem;
}

Not sure why you put in that left:-1.25rem either but if you need it then you may need to reduce the 6.5rem left margin by 1.25rem

1 Like

Nor am I! It’s all a blur. Thank you Paul. :biggrin:

1 Like

My Merton is screwed up again but you know what? I’m done with it for now. They wanted your animated tabs and now they have them. I need to do your 7 animated tabs which brings me back full circle to this great thread. And you Paul — and Deep Archibald and snady —are who make it great! 7 tabs. Coming right up . . . :weee:

7 ANIMATED TABS

This last of our (parchment :eyebrows:) animated tabs is going to go really fast because all the legwork has been done and the graphics files uploaded. This will be a collection of 7 textures, each under his own tab. The challenge is this: I want to use the extra-large versions of each of these backgrounds such that _however long the image was originally it will display to a length proportional to its width at 1080px wide . . . and go well past the very limited content (one short table) on each page. In other words I want the viewer to be able to scroll down past the table to have a good look at the graphic in its entirety but at 1080px wide — never stretched/just reduced.

The background displays right through the table, which is what I want. They can see how text looks against that background. Each of those listings will be a link to their respective tab. So the tabs need to be ((live)) just as soon as I get the links set up for them. So that’s my question: getting this to display — proportionally & fully — at a 1080px width so they can scroll down and see all of it. When done they can just grab the one they like and use it in their page(s). I will use it myself! :biggrin: Thanks guys.

<HTML LANG="en">

<HEAD>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Crete+Round:ital@0;1&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Solway:wght@300;400;500;700;800&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Uncial+Antiqua&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Goudy+Bookletter+1911&display=swap" rel="stylesheet">

  <title>99 svgpar7_ani_PG1 &#7172; by semicodin &#47; with Huge Assistance from Paul O&rsquo;Brien of Sitepoint Forums</title>

  <style>

    body {
      width: 1080px;
      margin: 0;
      font-family: 'solway', serif;
      font-size: 2.25rem;
      line-height: 1.05;
      font-weight: 600;
      color: black;
    }

.goudy {
      font-family: 'goudy bookletter 1911', serif;
      font-weight: bold;
}

p {line-height: 1; margin: 0;}
u {text-decoration: underline}
* {box-sizing: border-box}

.blu {color: blue}
.crim {color: crimson}

.ssz1 {
    color: #444444;
    padding-top: 3.13rem;
    text-align: center;
    font-family: 'solway', serif;
    font-size: 2rem;
    line-height: 2.25rem;
    font-weight: bold;
}

.ssz2 {
    color: #444444;
    text-align: center;
    padding-bottom: 3.13rem;
    font-family: 'solway', serif;
    font-size: 1.75rem;
    line-height: 2rem;
    font-weight: bold;
}
.special {
    border-right: 3px solid black;
    font-family: 'roboto condensed', sans-serif;
    font-weight: 800;
    font-size: 2.75rem;
    line-height: 2.88rem;
}
.special2 {
    font-family: 'roboto', sans-serif;
    font-weight: 800;
    font-size: 2.75rem;
    line-height: 2.88rem;
}

.bckgrd-1 {
    width: 100%;
    height: 100%;
    margin: 0;
    background-image: url('https://lh3.googleusercontent.com/pw/AP1GczOgmXJOxaV01FyGYLrUcxyCRJ2l4PG2x_XqmNAu0hA-RcY2KXt5JHLfF2A7S-G_hY-8g-vj8xSz0_JVtydy-rXoN2qkzVePI2LlynFkOQjfIy56Hw=w3423-h5134');
    font-style: italic;
    text-align: left;
    color: black;
    font-family: 'crete round', serif;
    font-size: 2.25rem;
    line-height: 2.38rem;
    font-weight: bold;
}

    td {
    padding-top: .4rem;
    padding-right: .4rem;
    padding-bottom: .4rem;
    padding-left: .7rem;
}

/* ▬▬▬▬▬▬ TABLE 1 ▬▬▬▬▬▬ */

.table1 {
    width: 88%;
    margin: 0rem 6% 0rem 6%;
    border: 1.75rem groove #dab471;
    padding: .8rem;
    color: white;
    text-align: center;
    font-style: italic;
    background-color: black;
    font-family: 'crete round', serif;
    font-size: 4rem;
    line-height: 4.25rem;
    font-weight: bold;
}

/* ▬▬▬▬▬▬ TABLE 2 ▬▬▬▬▬▬ */

td {
    border: 3px solid black;
    border-collapse: collapse;
}

.table2 {
    width: 88%;
    margin: 0rem 6% 0rem 6%;
    padding-bottom: 10rem;
    border-collapse: collapse;
    border: 3px solid black;
    border-left: 1.75rem groove #dab471;
    border-right: 1.75rem groove #dab471;
    border-bottom: 1.75rem groove #dab471;
    font-family: 'roboto', sans-serif;
    font-size: 2.25rem;
    line-height: 1.05;
    font-weight: bold;
    color: black;
}
.group2 {
    /*  TAB NUMBER  */
    width: 8%;
    color: black;
    font-style: normal;
    text-align: center;
    font-family: 'solway', serif;
    font-weight: 800;
    font-size: 3.75rem;
    line-height: 2.88rem;
}

.desc {
    width: 70%; /* DESCRIPTION */
    color: black;
    font-family: 'roboto', sans-serif;
    font-weight: 600;
    font-size: 2.75rem;
    line-height: 2.88rem;
}
.size {
    width: 22%; /* SIZE */
    color: blue;
    font-family: 'roboto condensed', sans-serif;
    font-weight: 600;
    font-size: 2.75rem;
    line-height: 2.88rem;
}

    .cent {
      text-align: center
    }

    .undr {
      text-decoration: underline
    }

    .roon {
      color: maroon
    }

/*▬▬▬▬ PAUL’S TAB Courtesy PAUL O’BRIEN of Sitepoint ▬▬▬▬ */

    .tablabel3 {
      position: relative;
      text-align: center;
      border-radius: 20px 20px 0px 0px;
      color: black;
      padding: 1rem 1rem 0;
      font-size: 2.25rem;
      line-height: 1.5;
      font-weight: bold;
      height: 67px;
      width: 250px;
      filter: drop-shadow(-3px 0px var(--border-color)) drop-shadow(3px 0px var(--border-color));
    }

    .tab {
      display: flex;
      max-width: 950px;
      margin: auto;
      overflow: hidden;
      position: relative;
      z-index: 1;
      filter: drop-shadow(0px -5px var(--border-color));
      border-bottom: 10px solid var(--bottom-border-color);
    }

    .tab:after,
    .tab:before {
      content: "";
      position: relative;
      z-index: 2;
      flex: 1;
      /*box-shadow: 0 34px var(--tab2color);*/
      box-shadow: 0 34px rgba(221, 198, 136, 0.8);
      /* Try and match a color from the image*/
      mix-blend-mode: lighten;
      /* merge the box shadow above with the background */
      /* this is necessary or a gap will show */
    }

    .tab:before {
      box-shadow: 0 34px rgb(0, 0, 0, 0.8)
    }

    .tab:after {
      border-radius: 0 0 0 80px;
      margin-left: -9px;
    }

    .tab:before {
      border-radius: 0 0 80px 0;
      margin-right: -9px;
    }

    .tablabel3:before {
      content: "";
      pointer-events: none;
      position: absolute;
      inset: 0 0 0 0;
      z-index: -1;
      background: var(--tab2color) url("https://semicodin.nekoweb.org/pics/parchment-a.jpg");
      background-position: -3px -8px;
      transform: perspective(100px) rotateX(36deg) translateY(5px);
      border-radius: 20px 20px 0 0;
    }

    .bkdimg {
      position: relative;
      background: none;
      overflow: hidden;
      margin-top: 1rem;
      margin-bottom: -2px;
      /* attempt to stop rounding errors when zoomed*/
    }

    .ctr {
      pointer-events: none;
    }

    .ctr a {
      pointer-events: initial;
    }

    .ctr {
      position: absolute;
      inset: 0 0 0 0;
    }

    .ctr2 {
      -index: 3;
    }

    .ctrmid {
      z-index: 2;
    }

    .ctr3 {
      z-index: 1;
    }

    .ctr2 .tab:before {
      flex: 0 0 65px;
    }

    .ctr3 .tab:after {
      flex: 0 0 65px;
    }

    .tab1active .ctr,
    .tab2active .ctr,
    .tab3active .ctr {
      position: absolute;
    }

    .tab1active .ctr2,
    .tab2active .ctrmid,
    .tab3active .ctr3 {
      position: relative;
      z-index: 4;
    }

    .tab3active .ctr2 {
      z-index: 1;
    }

    .svgtabs {
      --tab3-bg-color: #b16742;
      --tab3-color: #000;
    }

    .svgtabs {
      width: 100%;
      margin: auto;
      display: flex;
      overflow: hidden;
      border-bottom: 10px solid #000;
    }

    .svgtabs a {
      color: #000;
      text-decoration: none;
      flex: 1 0 0;
      display: grid;
      align-items: center;
      grid-template-areas: "tab";
      position: relative;
      text-align: center;
      margin-right: -9rem;
      transition: 0.3s ease;
    }

    .svgtabs.seventab a {
      margin-right: -5.4rem;
      margin-left: -1rem;
    }

    .svgtabs a:last-child {
      margin-right: 0 !important;
    }

    .svgtabs svg {
      width: 245px;
      height: 53px;
      display: block;
      grid-area: tab;
      position: relative;
      z-index: 1;
    }

    .svgtabs span {
      grid-area: tab;
      position: relative;
      z-index: 2;
      padding: 11px 2rem 0 0;
      font-family: 'solway', serif;
      font-weight: 800;
      color: black;;
      font-size: 2.52rem;
    }

    .svgtabs.seventab span {
      padding: 11px 1rem 0;
    }

    .svgtabs a:last-child span {
      padding: 11px 1rem 0;
    }

    .svgtabs a.active {
      z-index: 99;
    }

    .svgtabs a.active span {
      padding: 11px 1rem 0;
    }

    .hide-svg {
      position: fixed;
      left: -100vw;
      top: -100vh;
      height: 1px;
      width: 1px;
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
    }

    .tab-animated {
      height: 220px;
      animation: tab 10s infinite;
    }

    @keyframes tab {
      0% {
        height: 220px;
        width: 210px;
      }

      50% {
        height: 200px;
        width: 170px;
      }

      100% {
        height: 220px;
        width: 210px;
      }
    }

    .svgtab1{z-index:7;}
    .svgtab2{z-index:6;}
    .svgtab3{z-index:5;}
    .svgtab4{z-index:4;}
    .svgtab5{z-index:3;}
    .svgtab6{z-index:2;}
    .svgtab7{z-index:1;}

/* ━━━━━━ TABS ━━━━━━ */
    .indent {
      margin-left: 6.26rem
    }

    .tab a {
      transform: translateY(-8px);
      display: flex;
      text-align: center;
      justify-content: center;
    }

    .tab a:link {
      color: black;
      font-weight: bold;
    }

    .tab a:visited {
      color: black;
      font-weight: bold;
    }

    .redlink a:link {
      color: crimson;
      padding-top: 1rem;
      font-weight: bold;
    }

    .redlink a:visited {
      color: crimson;
      padding-top: 1rem;
      font-weight: bold;
    }

    .leada {
      color: blue;
      margin: 3.13rem 0 3.13rem 0;
      text-align: center;
      font-family: 'solway', serif;
      font-weight: bold;
      font-size: 3rem;
      line-height: 3.25rem;
    }

    .leadb {
      text-align: center;
      font-family: 'solway', serif;
      font-weight: 400;
      font-size: 2.5rem;
      line-height: 3rem;
    }

    .leadc {
      text-align: center;
      font-style: normal;
      margin-bottom: 2.5rem;
      font-family: 'solway', serif;
      font-weight: 400;
      font-size: 2rem;
      line-height: 2.5rem;
    }

    .rip {
      margin: 0 auto;
      font-style: normal;
      color: black;
      font-family: 'solway', serif;
      font-size: 5rem;
      line-height: 1.1;
      font-weight: bold;
    }

    .begin {
      margin: 1.57rem 5% 0rem 5%;
      font-style: normal;
      text-align: center;
      color: black;
      font-family: 'Uncial Antiqua', serif;
      font-size: 6rem;
      line-height: 1.02;
      font-weight: bold;
    }

    .up {
      text-align: left;
      color: black;
      font-family: 'Uncial Antiqua', serif;
      font-size: 4.5rem;
      font-weight: bold;
    }

    .swatch {
      margin-top: 1.57rem;
      margin-left: 15%;
      margin-right: 15%;
      margin-bottom: 2.5rem;
      font-style: normal;
      text-align: left;
      color: black;
      font-family: 'solway', serif;
      font-size: 3.25rem;
      line-height: 1.1;
      font-weight: bold;
    }

.xtnd {
      padding-bottom: 2000px;
      height: auto;
}


/*▬▬▬▬▬▬ END CSS ▬▬▬▬▬▬*/
</style>
</head>

<body>

  <main>
    <div class="leada">
      7 Animated SVG Tabs
    </div>

    <!-- add active class to anchor to bring the tab in front as required -->
    <nav class="svgtabs seventab">
      <a class="svgtab1" href="#">
        <span>1</span>
        <svg viewBox="0 0 64.823 11.023" xmlns="http://www.w3.org/2000/svg">
          <use href="#cutetab" />
        </svg>
      </a>
      <a class="svgtab2" href="#">
        <span>2</span>
        <svg viewBox="0 0 64.823 11.023" xmlns="http://www.w3.org/2000/svg">
          <use href="#cutetab" />
        </svg>
      </a>
      <a class="svgtab3" href="#">
        <span>3</span>
        <svg viewBox="0 0 64.823 11.023" xmlns="http://www.w3.org/2000/svg">
          <use href="#cutetab" />
        </svg>
      </a>

      <a class="svgtab4" href="#">
        <span>4</span>
        <svg viewBox="0 0 64.823 11.023" xmlns="http://www.w3.org/2000/svg">
          <use href="#cutetab" />
        </svg>
      </a>

      <a class="svgtab5" href="#">
        <span>5</span>
        <svg viewBox="0 0 64.823 11.023" xmlns="http://www.w3.org/2000/svg">
          <use href="#cutetab" />
        </svg>
      </a>

      <a class="svgtab6" href="#">
        <span>6</span>
        <svg viewBox="0 0 64.823 11.023" xmlns="http://www.w3.org/2000/svg">
          <use href="#cutetab" />
        </svg>
      </a>

      <a class="svgtab7" href="#">
        <span>7</span>
        <svg viewBox="0 0 64.823 11.023" xmlns="http://www.w3.org/2000/svg">
          <use href="#cutetab" />
        </svg>
      </a>

    </nav>

<!--▬▬▬▬ CLOSING 7 TABS ▬▬▬-->

    <div class="bckgrd-1">

  <div class="ssz1">
   This Is A Small Screen Zone*</div>
  <div class="ssz2">
    *Designed and built for SmartPhones<span class="clamlbk">!</span></div>

 <table class="table1">
    <tbody>
      <tr>
        <td>
Seven Paper <span class="goudy">&amp;</span><br>
Fabric Textures
        </td>
      </tr>
    </tbody>
  </table>

<table class="table2">
    <tbody>

      <tr>
        <td class="special">Tab</td>
        <td class="desc">Material Description</td>
        <td class="special2">Image Dimensions</td>
      </tr>

      <tr>
        <td class="group2">1</td>
        <td class="desc">1_paper-speckled-sand_3423x5134.jpg</td>
        <td class="size">3423 X 5134</td>
      </tr>

      <tr>
        <td class="group2">2</td>
        <td class="desc">2_paper-rice-pink-dusky_tile_3000x3000.jpg</td>
        <td class="size">3000 X 3000</td>
      </tr>

      <tr>
        <td class="group2">3</td>
        <td class="desc">3_linen-burlap-olive_2848x4272.jpg</td>
        <td class="size">2848 X 4272</td>
      </tr>

      <tr>
        <td class="group2">4</td>
        <td class="desc">4_paper-rice-peach_4794x7191.jpg</td>
        <td class="size">4794 X 7191</td>
      </tr>

      <tr>
        <td class="group2">5</td>
        <td class="desc">5_linen-burlap-taupe_2848x4272.jpg</td>
        <td class="size">2848 X 4272</td>
      </tr>

      <tr>
        <td class="group2">6</td>
        <td class="desc">6_linen-ancient-shroud-orange_2061x4554.jpg</td>
        <td class="size">2061 X 4554</td>
      </tr>

      <tr>
        <td class="group2">7</td>
        <td class="desc">7_paper-rice-beige_2000x2512.jpg</td>
        <td class="size"> 2000 X 2512</td>
      </tr>

</tbody>
</table>

      </div><!-- closing table2 -->

<div class="xtnd">
      &nbsp;
</div>

      <!-- this following block of code is defining the svg and can be kept out of the way anyway on the page -->
      <!-- I'm putting a div around it so that we can just hide tehm all from impacting on the page -->

      <div class="hide-svg">

        <!-- this one is for the 7 tab variation -->
        <svg viewBox="0 0 64.823 11.023" xmlns="http://www.w3.org/2000/svg">
          <defs>
            <g id="cutetab" class="tab-unit">
              <clipPath id="shape7">
                <path d="M1425.55 1700.81c-9.892 0-10.854 3.666-13.164 7.378-1.671 2.685-4.696 5.999-6.313 5.96h51.153c-1.616.039-4.641-3.275-6.312-5.96-2.31-3.713-3.273-7.379-13.165-7.379h-7.346Z" transform="translate(-1397.992 -1700.126)" />
                  </clipPath>
                <path style="fill:#000; stroke-width:3; stroke:#000" d="M1423.542 1700.126c-3.528.002-5.957.932-7.742 2.337-1.788 1.407-2.92 3.238-4.04 4.986-1.118 1.748-2.218 3.414-3.872 4.639-1.655 1.225-3.882 2.054-7.403 2.054h-2.493v.006h9.14a10.53 10.53 0 0 0 1.57-.96c1.896-1.404 3.089-3.244 4.213-5 1.124-1.757 2.18-3.43 3.732-4.65 1.552-1.222 3.607-2.044 6.91-2.044h16.185c3.303 0 5.359.823 6.91 2.045 1.552 1.222 2.609 2.893 3.733 4.65 1.123 1.757 2.317 3.599 4.213 5.002.475.352.992.673 1.56.957h6.657c-3.522 0-5.748-.83-7.403-2.056-1.654-1.226-2.754-2.89-3.873-4.64-1.118-1.748-2.251-3.582-4.039-4.99-1.785-1.405-4.214-2.334-7.743-2.336Z" transform="translate(-1397.992 -1700.126)" />
              <image class="tab-animated tan7" transform="translate(00 0)" width="270" height="220" href="https://semicodin.nekoweb.org/pics/parchment-a.jpg" clip-path="url(#shape7)" />
            </g>
          </defs>
        </svg>

    </div><!-- closing main -->
  </main><!-- closing bckgrd-1 -->

</body>
</html>

There are two ways you can do this.

One is that you manually give the div that holds the background image a min-height in css that is equal to the height the image will be at that aspect ratio. That is a basic manual maths calculation as you know the width is going to be 1080px so the height will be worked out from its aspect ratio. You use that height as the min-height in your div that holds the image.

Of course you will need to do that manually for all the different aspect ratio images you use.

Or instead you put the image in the actual html as a foreground image so that it stretches the container automatically (unlike a background image). All you need do then for all images is to set them at a width of 100% in the css with a height of auto.

This is a much simpler process and works for all sized images automatically but you then need to make sure the text content is on top of the image and not pushed down by the image as per a normal image behaviour. You can do this by using css grid and placing the image and the text in the same grid area. In this way the wrapper will be as tall as the image (unless of course you add miles of content that is taller than the image and then the text will be longer but you have already stated you are not going to do that).

Therefore number 2 is the preferred version and as a basic example of the setup needed I have put a codepen here.

The css you need is in the css panel (apart from the body styles as you already have them).

The extra html is simple and is basically this

<div class="imagebg image1">
 
  <img class="bgimage" src="https://picsum.photos/id/1016/3000/5000" alt="pic1">

  <div class="content-area">
    <!-- all content goes in here including tables and will sit on top of the image -->
  </div>

</div>:

If you want more than one image on the same page then you need to duplicate that whole rule.

As another demo I pasted that all into the html you just posted (although I had to tidy up a couple of your mismatched tags).

1 Like

Well Paul I studied my 7 images to be used for this project and all but one of them would barely reach far enough to clear the table! :tongue: So that’s what I’ve been doing for the past however many hours. Then, a couple of them just looked ugly as hell and I’m like — I wouldn’t use this crap so why would anyone else?! lol Sorry for the delay.

So I had no problems with grid until I got to the block of data that represents the “Title” for the project. This is the 1-3 line caption appearing above the tabs that states what has been done in the document (eg. animated tabs, Grid) and I realized — I never even gave you that part! Yes well . . . So there’s that.

And then there are our 7 little beauties (looking magnificent as per the talent behind them). The background appears behind them and that’s no good. So I’m uncertain how to proceed given that I’m in a Grid environment: the Quantum Physics of HTML lol. Write when you get a chance. We love to code! :biggrin:

<!DOCTYPE html>
<HTML LANG="en">

<HEAD>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Crete+Round:ital@0;1&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Solway:wght@300;400;500;700;800&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Uncial+Antiqua&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Goudy+Bookletter+1911&display=swap" rel="stylesheet">

  <title>99 svgpar7_ani_PG1 &#7172; by semicodin &#47; with Huge Assistance from Paul O&rsquo;Brien of Sitepoint Forums</title>

  <style>

    body {
      width: 1080px;
      margin: 0;
      font-family: 'solway', serif;
      font-size: 2.25rem;
      line-height: 1.05;
      font-weight: 600;
      color: black;
    }

.goudy {
      font-family: 'goudy bookletter 1911', serif;
      font-weight: bold;
}

p {line-height: 1; margin: 0;}
u {text-decoration: underline}
* {box-sizing: border-box}

.blu {color: blue}
.crim {color: crimson}

.ssz1 {
    color: #444444;
    padding-top: 3.13rem;
    text-align: center;
    font-family: 'solway', serif;
    font-size: 2rem;
    line-height: 2.25rem;
    font-weight: bold;
}

.ssz2 {
    color: #444444;
    text-align: center;
    padding-bottom: 3.13rem;
    font-family: 'solway', serif;
    font-size: 1.75rem;
    line-height: 2rem;
    font-weight: bold;
}
.special {
    border-right: 3px solid black;
    font-family: 'roboto condensed', sans-serif;
    font-weight: 800;
    font-size: 2.75rem;
    line-height: 2.88rem;
}
.special2 {
    font-family: 'roboto', sans-serif;
    font-weight: 800;
    font-size: 2.75rem;
    line-height: 2.88rem;
}

.bckgrd-1 {
    width: 100%;
    height: 100%;
    margin: 0;
    background-image: url('https://lh3.googleusercontent.com/pw/AP1GczOgmXJOxaV01FyGYLrUcxyCRJ2l4PG2x_XqmNAu0hA-RcY2KXt5JHLfF2A7S-G_hY-8g-vj8xSz0_JVtydy-rXoN2qkzVePI2LlynFkOQjfIy56Hw=w3423-h5134');
    font-style: italic;
    text-align: left;
    color: black;
    font-family: 'crete round', serif;
    font-size: 2.25rem;
    line-height: 2.38rem;
    font-weight: bold;
}

    td {
    padding-top: .4rem;
    padding-right: .4rem;
    padding-bottom: .4rem;
    padding-left: .7rem;
}

/* ▬▬▬▬▬▬ TABLE 1 ▬▬▬▬▬▬ */

.table1 {
    width: 88%;
    margin: 0rem 6% 0rem 6%;
    border: 1.75rem groove #dab471;
    padding: .8rem;
    color: white;
    text-align: center;
    font-style: italic;
    background-color: black;
    font-family: 'crete round', serif;
    font-size: 4rem;
    line-height: 4.25rem;
    font-weight: bold;
}

/* ▬▬▬▬▬▬ TABLE 2 ▬▬▬▬▬▬ */

td {
    border: 3px solid black;
    border-collapse: collapse;
}

.table2 {
    width: 88%;
    margin: 0rem 6% 0rem 6%;
    padding-bottom: 10rem;
    border-collapse: collapse;
    border: 3px solid black;
    border-left: 1.75rem groove #dab471;
    border-right: 1.75rem groove #dab471;
    border-bottom: 1.75rem groove #dab471;
    font-family: 'roboto', sans-serif;
    font-size: 2.25rem;
    line-height: 1.05;
    font-weight: bold;
    color: black;
}
.group2 {
    /*  TAB NUMBER  */
    width: 8%;
    color: black;
    font-style: normal;
    text-align: center;
    font-family: 'solway', serif;
    font-weight: 800;
    font-size: 3.75rem;
    line-height: 2.88rem;
}

.desc {
    width: 70%; /* DESCRIPTION */
    color: black;
    font-family: 'roboto', sans-serif;
    font-weight: 600;
    font-size: 2.75rem;
    line-height: 2.88rem;
}
.size {
    width: 22%; /* SIZE */
    color: blue;
    font-family: 'roboto condensed', sans-serif;
    font-weight: 600;
    font-size: 2.75rem;
    line-height: 2.88rem;
}

    .cent {
      text-align: center
    }

    .undr {
      text-decoration: underline
    }

    .roon {
      color: maroon
    }

/*▬▬▬▬ PAUL’S TAB Courtesy PAUL O’BRIEN of Sitepoint ▬▬▬▬ */

    .tablabel3 {
      position: relative;
      text-align: center;
      border-radius: 20px 20px 0px 0px;
      color: black;
      padding: 1rem 1rem 0;
      font-size: 2.25rem;
      line-height: 1.5;
      font-weight: bold;
      height: 67px;
      width: 250px;
      filter: drop-shadow(-3px 0px var(--border-color)) drop-shadow(3px 0px var(--border-color));
    }

    .tab {
      display: flex;
      max-width: 950px;
      margin: auto;
      overflow: hidden;
      position: relative;
      z-index: 1;
      filter: drop-shadow(0px -5px var(--border-color));
      border-bottom: 10px solid var(--bottom-border-color);
    }

    .tab:after,
    .tab:before {
      content: "";
      position: relative;
      z-index: 2;
      flex: 1;
      /*box-shadow: 0 34px var(--tab2color);*/
      box-shadow: 0 34px rgba(221, 198, 136, 0.8);
      /* Try and match a color from the image*/
      mix-blend-mode: lighten;
      /* merge the box shadow above with the background */
      /* this is necessary or a gap will show */
    }

    .tab:before {
      box-shadow: 0 34px rgb(0, 0, 0, 0.8)
    }

    .tab:after {
      border-radius: 0 0 0 80px;
      margin-left: -9px;
    }

    .tab:before {
      border-radius: 0 0 80px 0;
      margin-right: -9px;
    }

    .tablabel3:before {
      content: "";
      pointer-events: none;
      position: absolute;
      inset: 0 0 0 0;
      z-index: -1;
      background: var(--tab2color) url("https://semicodin.nekoweb.org/pics/parchment-a.jpg");
      background-position: -3px -8px;
      transform: perspective(100px) rotateX(36deg) translateY(5px);
      border-radius: 20px 20px 0 0;
    }

    .bkdimg {
      position: relative;
      background: none;
      overflow: hidden;
      margin-top: 1rem;
      margin-bottom: -2px;
      /* attempt to stop rounding errors when zoomed*/
    }

    .ctr {
      pointer-events: none;
    }

    .ctr a {
      pointer-events: initial;
    }

    .ctr {
      position: absolute;
      inset: 0 0 0 0;
    }

    .ctr2 {
      -index: 3;
    }

    .ctrmid {
      z-index: 2;
    }

    .ctr3 {
      z-index: 1;
    }

    .ctr2 .tab:before {
      flex: 0 0 65px;
    }

    .ctr3 .tab:after {
      flex: 0 0 65px;
    }

    .tab1active .ctr,
    .tab2active .ctr,
    .tab3active .ctr {
      position: absolute;
    }

    .tab1active .ctr2,
    .tab2active .ctrmid,
    .tab3active .ctr3 {
      position: relative;
      z-index: 4;
    }

    .tab3active .ctr2 {
      z-index: 1;
    }

    .svgtabs {
      --tab3-bg-color: #b16742;
      --tab3-color: #000;
    }

    .svgtabs {
      width: 100%;
      margin: auto;
      display: flex;
      overflow: hidden;
      border-bottom: 10px solid #000;
    }

    .svgtabs a {
      color: #000;
      text-decoration: none;
      flex: 1 0 0;
      display: grid;
      align-items: center;
      grid-template-areas: "tab";
      position: relative;
      text-align: center;
      margin-right: -9rem;
      transition: 0.3s ease;
    }

    .svgtabs.seventab a {
      margin-right: -5.4rem;
      margin-left: -1rem;
    }

    .svgtabs a:last-child {
      margin-right: 0 !important;
    }

    .svgtabs svg {
      width: 245px;
      height: 53px;
      display: block;
      grid-area: tab;
      position: relative;
      z-index: 1;
    }

    .svgtabs span {
      grid-area: tab;
      position: relative;
      z-index: 2;
      padding: 11px 2rem 0 0;
      font-family: 'solway', serif;
      font-weight: 800;
      color: black;;
      font-size: 2.52rem;
    }

    .svgtabs.seventab span {
      padding: 11px 1rem 0;
    }

    .svgtabs a:last-child span {
      padding: 11px 1rem 0;
    }

    .svgtabs a.active {
      z-index: 99;
    }

    .svgtabs a.active span {
      padding: 11px 1rem 0;
    }

    .hide-svg {
      position: fixed;
      left: -100vw;
      top: -100vh;
      height: 1px;
      width: 1px;
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
    }

    .tab-animated {
      height: 220px;
      animation: tab 10s infinite;
    }

    @keyframes tab {
      0% {
        height: 220px;
        width: 210px;
      }

      50% {
        height: 200px;
        width: 170px;
      }

      100% {
        height: 220px;
        width: 210px;
      }
    }

    .svgtab1{z-index:7;}
    .svgtab2{z-index:6;}
    .svgtab3{z-index:5;}
    .svgtab4{z-index:4;}
    .svgtab5{z-index:3;}
    .svgtab6{z-index:2;}
    .svgtab7{z-index:1;}

/* ━━━━━━ TABS ━━━━━━ */
    .indent {
      margin-left: 6.26rem
    }

    .tab a {
      transform: translateY(-8px);
      display: flex;
      text-align: center;
      justify-content: center;
    }

    .tab a:link {
      color: black;
      font-weight: bold;
    }

    .tab a:visited {
      color: black;
      font-weight: bold;
    }

    .redlink a:link {
      color: crimson;
      padding-top: 1rem;
      font-weight: bold;
    }

    .redlink a:visited {
      color: crimson;
      padding-top: 1rem;
      font-weight: bold;
    }

    .leada {
      color: blue;
      margin: 3.13rem 0 3.13rem 0;
      text-align: center;
      font-family: 'solway', serif;
      font-weight: bold;
      font-size: 3rem;
      line-height: 3.25rem;
    }

    .leadb {
      text-align: center;
      font-family: 'solway', serif;
      font-weight: 400;
      font-size: 2.5rem;
      line-height: 3rem;
    }

    .leadc {
      text-align: center;
      font-style: normal;
      margin-bottom: 2.5rem;
      font-family: 'solway', serif;
      font-weight: 400;
      font-size: 2rem;
      line-height: 2.5rem;
    }

    .rip {
      margin: 0 auto;
      font-style: normal;
      color: black;
      font-family: 'solway', serif;
      font-size: 5rem;
      line-height: 1.1;
      font-weight: bold;
    }

    .begin {
      margin: 1.57rem 5% 0rem 5%;
      font-style: normal;
      text-align: center;
      color: black;
      font-family: 'Uncial Antiqua', serif;
      font-size: 6rem;
      line-height: 1.02;
      font-weight: bold;
    }

    .up {
      text-align: left;
      color: black;
      font-family: 'Uncial Antiqua', serif;
      font-size: 4.5rem;
      font-weight: bold;
    }

    .swatch {
      margin-top: 1.57rem;
      margin-left: 15%;
      margin-right: 15%;
      margin-bottom: 2.5rem;
      font-style: normal;
      text-align: left;
      color: black;
      font-family: 'solway', serif;
      font-size: 3.25rem;
      line-height: 1.1;
      font-weight: bold;
    }

.xtnd {
      padding-bottom: 2000px;
      height: auto;
}


/*▬▬▬▬▬▬ END CSS ▬▬▬▬▬▬*/
</style>
</head>

<body>

  <main>
    <div class="leada">
      7 Animated SVG Tabs
    </div>

    <!-- add active class to anchor to bring the tab in front as required -->
    <nav class="svgtabs seventab">
      <a class="svgtab1" href="#">
        <span>1</span>
        <svg viewBox="0 0 64.823 11.023" xmlns="http://www.w3.org/2000/svg">
          <use href="#cutetab" />
        </svg>
      </a>
      <a class="svgtab2" href="#">
        <span>2</span>
        <svg viewBox="0 0 64.823 11.023" xmlns="http://www.w3.org/2000/svg">
          <use href="#cutetab" />
        </svg>
      </a>
      <a class="svgtab3" href="#">
        <span>3</span>
        <svg viewBox="0 0 64.823 11.023" xmlns="http://www.w3.org/2000/svg">
          <use href="#cutetab" />
        </svg>
      </a>

      <a class="svgtab4" href="#">
        <span>4</span>
        <svg viewBox="0 0 64.823 11.023" xmlns="http://www.w3.org/2000/svg">
          <use href="#cutetab" />
        </svg>
      </a>

      <a class="svgtab5" href="#">
        <span>5</span>
        <svg viewBox="0 0 64.823 11.023" xmlns="http://www.w3.org/2000/svg">
          <use href="#cutetab" />
        </svg>
      </a>

      <a class="svgtab6" href="#">
        <span>6</span>
        <svg viewBox="0 0 64.823 11.023" xmlns="http://www.w3.org/2000/svg">
          <use href="#cutetab" />
        </svg>
      </a>

      <a class="svgtab7" href="#">
        <span>7</span>
        <svg viewBox="0 0 64.823 11.023" xmlns="http://www.w3.org/2000/svg">
          <use href="#cutetab" />
        </svg>
      </a>

    </nav>

<!--▬▬▬▬ CLOSING 7 TABS ▬▬▬-->

    <div class="bckgrd-1">

  <div class="ssz1">
   This Is A Small Screen Zone*</div>
  <div class="ssz2">
    *Designed and built for SmartPhones<span class="clamlbk">!</span></div>

 <table class="table1">
    <tbody>
      <tr>
        <td>
Seven Paper <span class="goudy">&amp;</span><br>
Fabric Textures
        </td>
      </tr>
    </tbody>
  </table>

<table class="table2">
    <tbody>

      <tr>
        <td class="special">Tab</td>
        <td class="desc">Material Description</td>
        <td class="special2">Image Dimensions</td>
      </tr>

      <tr>
        <td class="group2">1</td>
        <td class="desc">1_paper-speckled-sand_3423x5134.jpg</td>
        <td class="size">3423 X 5134</td>
      </tr>

      <tr>
        <td class="group2">2</td>
        <td class="desc">2_paper-rice-pink-dusky_tile_3000x3000.jpg</td>
        <td class="size">3000 X 3000</td>
      </tr>

      <tr>
        <td class="group2">3</td>
        <td class="desc">3_linen-burlap-olive_2848x4272.jpg</td>
        <td class="size">2848 X 4272</td>
      </tr>

      <tr>
        <td class="group2">4</td>
        <td class="desc">4_paper-rice-peach_4794x7191.jpg</td>
        <td class="size">4794 X 7191</td>
      </tr>

      <tr>
        <td class="group2">5</td>
        <td class="desc">5_linen-burlap-taupe_2848x4272.jpg</td>
        <td class="size">2848 X 4272</td>
      </tr>

      <tr>
        <td class="group2">6</td>
        <td class="desc">6_linen-ancient-shroud-orange_2061x4554.jpg</td>
        <td class="size">2061 X 4554</td>
      </tr>

      <tr>
        <td class="group2">7</td>
        <td class="desc">7_paper-rice-beige_2000x2512.jpg</td>
        <td class="size"> 2000 X 2512</td>
      </tr>

</tbody>
</table>

      </div><!-- closing table2 -->

<div class="xtnd">
      &nbsp;
</div>

      <!-- this following block of code is defining the svg and can be kept out of the way anyway on the page -->
      <!-- I'm putting a div around it so that we can just hide tehm all from impacting on the page -->

      <div class="hide-svg">

        <!-- this one is for the 7 tab variation -->
        <svg viewBox="0 0 64.823 11.023" xmlns="http://www.w3.org/2000/svg">
          <defs>
            <g id="cutetab" class="tab-unit">
              <clipPath id="shape7">
                <path d="M1425.55 1700.81c-9.892 0-10.854 3.666-13.164 7.378-1.671 2.685-4.696 5.999-6.313 5.96h51.153c-1.616.039-4.641-3.275-6.312-5.96-2.31-3.713-3.273-7.379-13.165-7.379h-7.346Z" transform="translate(-1397.992 -1700.126)" />
                  </clipPath>
                <path style="fill:#000; stroke-width:3; stroke:#000" d="M1423.542 1700.126c-3.528.002-5.957.932-7.742 2.337-1.788 1.407-2.92 3.238-4.04 4.986-1.118 1.748-2.218 3.414-3.872 4.639-1.655 1.225-3.882 2.054-7.403 2.054h-2.493v.006h9.14a10.53 10.53 0 0 0 1.57-.96c1.896-1.404 3.089-3.244 4.213-5 1.124-1.757 2.18-3.43 3.732-4.65 1.552-1.222 3.607-2.044 6.91-2.044h16.185c3.303 0 5.359.823 6.91 2.045 1.552 1.222 2.609 2.893 3.733 4.65 1.123 1.757 2.317 3.599 4.213 5.002.475.352.992.673 1.56.957h6.657c-3.522 0-5.748-.83-7.403-2.056-1.654-1.226-2.754-2.89-3.873-4.64-1.118-1.748-2.251-3.582-4.039-4.99-1.785-1.405-4.214-2.334-7.743-2.336Z" transform="translate(-1397.992 -1700.126)" />
              <image class="tab-animated tan7" transform="translate(00 0)" width="270" height="220" href="https://semicodin.nekoweb.org/pics/parchment-a.jpg" clip-path="url(#shape7)" />
            </g>
          </defs>
        </svg>

    </div><!-- closing main -->
  </main><!-- closing bckgrd-1 -->

</body>
</html>

But wait. Then I thought I’d be clever and surprise you with my skill so I did this and promptly lost 6 of my tabs! :rofl:

<!DOCTYPE html>
<HTML LANG="en">

<HEAD>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Crete+Round:ital@0;1&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Solway:wght@300;400;500;700;800&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Goudy+Bookletter+1911&display=swap" rel="stylesheet">

  <title>99 svgpar7_ani_grid_PG1 &#7172; by semicodin &#47; with Huge Assistance from Paul O&rsquo;Brien of Sitepoint Forums</title>

  <style>

    body {
      width: 1080px;
      margin: 0;
      font-family: 'solway', serif;
      font-size: 2.25rem;
      line-height: 1.05;
      font-weight: 600;
      color: black;
    }

/* ▬▬▬▬▬ HIS GRIDness ▬▬▬▬*/

.imagebg {
  display: grid;
  width: 1080px;
  grid-template-areas: "stack";
}
.imagebg img.bgimage {
  width: 100%;
  height: auto;
  grid-area: stack;
}
.content-area {
  grid-area: stack;
}

/* ▬▬▬▬ BEGIN + END ▬▬▬▬ */

.goudy {
      font-family: 'goudy bookletter 1911', serif;
      font-weight: bold;
}
.leada {
    padding: 4rem 2rem 1rem 2rem;
    background: white;
    color: blue;
    text-align: center;
    font-family: 'solway', serif;
    font-size: 3.25rem;
    line-height: 1.1;
    font-weight: bold;
}

.leadb {
    padding: 0rem 2rem 4rem 2rem;
    background: white;
    color: blue;
    text-align: center;
    font-family: 'solway', serif;
    font-size: 2.25rem;
    line-height: 1.02;
    font-weight: bold;
}

.ssz1 {
    color: #777777;
    margin-top: 3.13rem;
    text-align: center;
    font-family: 'roboto serif', serif;
    font-size: 2rem;
    line-height: 2.25rem;
    font-weight: bold;
}

.ssz2 {
    color: #888888;
    text-align: center;
    margin-bottom: 1.75rem;
    font-family: 'roboto serif', serif;
    font-size: 1.75rem;
    line-height: 2rem;
    font-weight: bold;
}
/* ▬▬▬▬▬▬ */
.tanlinkhere a:link {
    color: #dab571;
    font-family: 'solway', serif;
    font-weight: 700;
    font-size: 4rem;
    line-height: 1.1;
    }
.tanlinkhere a:visited {
    color: #dab571;
    font-family: 'solway', serif;
    font-weight: 700;
    font-size: 4rem;
    line-height: 1.1;
    }
.divup {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding: 4rem 0 4rem 0;
    width: 750px;
    height: 90px;
}
.divdown {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 0 10rem 0;
    width: 750px;
    height: 90px;
}

.contact {
    margin: 0;
    padding: 0rem 0rem 7rem 0rem;
    background-color: black;
    font-style: normal;
    text-align: left;
    color: black;
    font-family: 'solway', serif;
    font-size: 2.25rem;
    line-height: 2.38rem;
    font-weight: bold;
}
.here {
    color: #ffffee;
    text-align: center;
    padding-top: 6rem;
    margin: 4.5rem 0 2rem 0;
    font-family: 'solway', serif;
    font-size: 4rem;
    line-height: 1.1;
    font-weight: bold;
}
.down {
    color: #ffffee;
    text-align: center;
    margin: 0 0 1rem 0;
    font-family: 'solway', serif;
    font-size: 2rem;
    line-height: 1.02;
    font-weight: 700;
}
.thanks {
    color: #ffffee;
    text-align: center;
    margin: 0 4rem 0 4rem;
    font-family: 'solway', serif;
    font-size: 2rem;
    line-height: 1.02;
    font-weight: bold;
}
.quest {
    color: #ffffee;
    text-align: center;
    margin: 2.25rem 2rem 2.25rem 2rem;
    font-family: 'solway', serif;
    font-size: 3rem;
    line-height: 1.05;
    font-weight: bold;
}
.end {
    color: #ffffee;
    text-align: center;
    margin: 4rem 4rem 2.5rem 4rem;
    font-family: 'solway', serif;
    font-size: 2rem;
    line-height: 1.02;
    font-weight: bold;
}
.clamiv35 {
	color: #ffffee;
	font-style: italic;
	font-family: roboto, sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
}

a:active {color: fuschia}
a:hover {color: fuschia}
a:link {color: #dab571}
a:visited {color: #dab571}


/*▬▬▬▬ PAUL’S TABS Courtesy PAUL O’BRIEN of Sitepoint Forums ▬▬▬▬ */

    .tablabel3 {
      position: relative;
      text-align: center;
      border-radius: 20px 20px 0px 0px;
      color: black;
      padding: 1rem 1rem 0;
      font-size: 2.25rem;
      line-height: 1.5;
      font-weight: bold;
      height: 67px;
      width: 250px;
      filter: drop-shadow(-3px 0px var(--border-color)) drop-shadow(3px 0px var(--border-color));
    }

    .tab {
      display: flex;
      max-width: 950px;
      margin: auto;
      overflow: hidden;
      position: relative;
      z-index: 1;
      filter: drop-shadow(0px -5px var(--border-color));
      border-bottom: 10px solid var(--bottom-border-color);
    }

    .tab:after,
    .tab:before {
      content: "";
      position: relative;
      z-index: 2;
      flex: 1;
      /*box-shadow: 0 34px var(--tab2color);*/
      box-shadow: 0 34px rgba(221, 198, 136, 0.8);
      /* Try and match a color from the image*/
      mix-blend-mode: lighten;
      /* merge the box shadow above with the background */
      /* this is necessary or a gap will show */
    }

    .tab:before {
      box-shadow: 0 34px rgb(0, 0, 0, 0.8)
    }

    .tab:after {
      border-radius: 0 0 0 80px;
      margin-left: -9px;
    }

    .tab:before {
      border-radius: 0 0 80px 0;
      margin-right: -9px;
    }

    .tablabel3:before {
      content: "";
      pointer-events: none;
      position: absolute;
      inset: 0 0 0 0;
      z-index: -1;
      background: var(--tab2color) url("https://semicodin.nekoweb.org/pics/parchment-a.jpg");
      background-position: -3px -8px;
      transform: perspective(100px) rotateX(36deg) translateY(5px);
      border-radius: 20px 20px 0 0;
    }

    .bkdimg {
      position: relative;
      background: none;
      overflow: hidden;
      margin-top: 1rem;
      margin-bottom: -2px;
      /* attempt to stop rounding errors when zoomed*/
    }

    .ctr {
      pointer-events: none;
    }

    .ctr a {
      pointer-events: initial;
    }

    .ctr {
      position: absolute;
      inset: 0 0 0 0;
    }

    .ctr2 {
      -index: 3;
    }

    .ctrmid {
      z-index: 2;
    }

    .ctr3 {
      z-index: 1;
    }

    .ctr2 .tab:before {
      flex: 0 0 65px;
    }

    .ctr3 .tab:after {
      flex: 0 0 65px;
    }

    .tab1active .ctr,
    .tab2active .ctr,
    .tab3active .ctr {
      position: absolute;
    }

    .tab1active .ctr2,
    .tab2active .ctrmid,
    .tab3active .ctr3 {
      position: relative;
      z-index: 4;
    }

    .tab3active .ctr2 {
      z-index: 1;
    }

    .svgtabs {
      --tab3-bg-color: #b16742;
      --tab3-color: #000;
    }

    .svgtabs {
      width: 100%;
      margin: auto;
      display: flex;
      overflow: hidden;
      border-bottom: 10px solid #000;
    }

    .svgtabs a {
      color: #000;
      text-decoration: none;
      flex: 1 0 0;
      display: grid;
      align-items: center;
      grid-template-areas: "tab";
      position: relative;
      text-align: center;
      margin-right: -9rem;
      transition: 0.3s ease;
    }

    .svgtabs.seventab a {
      margin-right: -5.4rem;
      margin-left: -1rem;
    }

    .svgtabs a:last-child {
      margin-right: 0 !important;
    }

    .svgtabs svg {
      width: 245px;
      height: 53px;
      display: block;
      grid-area: tab;
      position: relative;
      z-index: 1;
    }

    .svgtabs span {
      grid-area: tab;
      position: relative;
      z-index: 2;
      padding: 11px 2rem 0 0;
      font-family: 'solway', serif;
      font-weight: 800;
      color: black;;
      font-size: 2.52rem;
    }

    .svgtabs.seventab span {
      padding: 11px 1rem 0;
    }

    .svgtabs a:last-child span {
      padding: 11px 1rem 0;
    }

    .svgtabs a.active {
      z-index: 99;
    }

    .svgtabs a.active span {
      padding: 11px 1rem 0;
    }

    .hide-svg {
      position: fixed;
      left: -100vw;
      top: -100vh;
      height: 1px;
      width: 1px;
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
    }

    .tab-animated {
      height: 220px;
      animation: tab 10s infinite;
    }

    @keyframes tab {
      0% {
        height: 220px;
        width: 210px;
      }

      50% {
        height: 200px;
        width: 170px;
      }

      100% {
        height: 220px;
        width: 210px;
      }
    }

    .svgtab1{z-index:7;}
    .svgtab2{z-index:6;}
    .svgtab3{z-index:5;}
    .svgtab4{z-index:4;}
    .svgtab5{z-index:3;}
    .svgtab6{z-index:2;}
    .svgtab7{z-index:1;}

    .tablabel3 {
      position: relative;
      text-align: center;
      border-radius: 20px 20px 0px 0px;
      color: black;
      padding: 1rem 1rem 0;
      font-size: 2.25rem;
      line-height: 1.5;
      font-weight: bold;
      height: 67px;
      width: 250px;
      filter: drop-shadow(-3px 0px var(--border-color)) drop-shadow(3px 0px var(--border-color));
    }

    .tab {
      display: flex;
      max-width: 950px;
      margin: auto;
      overflow: hidden;
      position: relative;
      z-index: 1;
      filter: drop-shadow(0px -5px var(--border-color));
      border-bottom: 10px solid var(--bottom-border-color);
    }

    .tab:after,
    .tab:before {
      content: "";
      position: relative;
      z-index: 2;
      flex: 1;
      /*box-shadow: 0 34px var(--tab2color);*/
      box-shadow: 0 34px rgba(221, 198, 136, 0.8);
      /* Try and match a color from the image*/
      mix-blend-mode: lighten;
      /* merge the box shadow above with the background */
      /* this is necessary or a gap will show */
    }

    .tab:before {
      box-shadow: 0 34px rgb(0, 0, 0, 0.8)
    }

    .tab:after {
      border-radius: 0 0 0 80px;
      margin-left: -9px;
    }

    .tab:before {
      border-radius: 0 0 80px 0;
      margin-right: -9px;
    }

    .tablabel3:before {
      content: "";
      pointer-events: none;
      position: absolute;
      inset: 0 0 0 0;
      z-index: -1;
      background: var(--tab2color) url("https://semicodin.nekoweb.org/pics/parchment-a.jpg");
      background-position: -3px -8px;
      transform: perspective(100px) rotateX(36deg) translateY(5px);
      border-radius: 20px 20px 0 0;
    }

    .bkdimg {
      position: relative;
      background: none;
      overflow: hidden;
      margin-top: 1rem;
      margin-bottom: -2px;
      /* attempt to stop rounding errors when zoomed*/
    }

    .ctr {
      pointer-events: none;
    }

    .ctr a {
      pointer-events: initial;
    }

    .ctr {
      position: absolute;
      inset: 0 0 0 0;
    }

    .ctr2 {
      -index: 3;
    }

    .ctrmid {
      z-index: 2;
    }

    .ctr3 {
      z-index: 1;
    }

    .ctr2 .tab:before {
      flex: 0 0 65px;
    }

    .ctr3 .tab:after {
      flex: 0 0 65px;
    }

    .tab1active .ctr,
    .tab2active .ctr,
    .tab3active .ctr {
      position: absolute;
    }

    .tab1active .ctr2,
    .tab2active .ctrmid,
    .tab3active .ctr3 {
      position: relative;
      z-index: 4;
    }

    .tab3active .ctr2 {
      z-index: 1;
    }

    .svgtabs {
      --tab3-bg-color: #b16742;
      --tab3-color: #000;
    }

    .svgtabs {
      width: 100%;
      margin: auto;
      display: flex;
      overflow: hidden;
      border-bottom: 10px solid #000;
    }

    .svgtabs a {
      color: #000;
      text-decoration: none;
      flex: 1 0 0;
      display: grid;
      align-items: center;
      grid-template-areas: "tab";
      position: relative;
      text-align: center;
      margin-right: -9rem;
      transition: 0.3s ease;
    }

    .svgtabs.seventab a {
      margin-right: -5.4rem;
      margin-left: -1rem;
    }

    .svgtabs a:last-child {
      margin-right: 0 !important;
    }

    .svgtabs svg {
      width: 245px;
      height: 53px;
      display: block;
      grid-area: tab;
      position: relative;
      z-index: 1;
    }

    .svgtabs span {
      grid-area: tab;
      position: relative;
      z-index: 2;
      padding: 11px 2rem 0 0;
      font-family: 'solway', serif;
      font-weight: 800;
      color: black;;
      font-size: 2.52rem;
    }

    .svgtabs.seventab span {
      padding: 11px 1rem 0;
    }

    .svgtabs a:last-child span {
      padding: 11px 1rem 0;
    }

    .svgtabs a.active {
      z-index: 99;
    }

    .svgtabs a.active span {
      padding: 11px 1rem 0;
    }

    .hide-svg {
      position: fixed;
      left: -100vw;
      top: -100vh;
      height: 1px;
      width: 1px;
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
    }

    .tab-animated {
      height: 220px;
      animation: tab 10s infinite;
    }

    @keyframes tab {
      0% {
        height: 220px;
        width: 210px;
      }

      50% {
        height: 200px;
        width: 170px;
      }

      100% {
        height: 220px;
        width: 210px;
      }
    }

    .svgtab1{z-index:7;}
    .svgtab2{z-index:6;}
    .svgtab3{z-index:5;}
    .svgtab4{z-index:4;}
    .svgtab5{z-index:3;}
    .svgtab6{z-index:2;}
    .svgtab7{z-index:1;}

    .tab a {
      transform: translateY(-8px);
      display: flex;
      text-align: center;
      justify-content: center;
    }

    .tab a:link {
      color: black;
      font-weight: bold;
    }

    .tab a:visited {
      color: black;
      font-weight: bold;
    }

    .tab a {
      transform: translateY(-8px);
      display: flex;
      text-align: center;
      justify-content: center;
    }

    .tab a:link {
      color: black;
      font-weight: bold;
    }

    .tab a:visited {
      color: black;
      font-weight: bold;
    }


/* ▬▬▬ MAIN CONTENToLoGY ▬▬ */

p {line-height: 1; margin: 0;}
u {text-decoration: underline}
* {box-sizing: border-box}

.blu {color: blue}
.crim {color: crimson}

.ssz1 {
    color: #444444;
    padding-top: 3.13rem;
    text-align: center;
    font-family: 'solway', serif;
    font-size: 2rem;
    line-height: 2.25rem;
    font-weight: bold;
}

.ssz2 {
    color: #444444;
    text-align: center;
    padding-bottom: 3.13rem;
    font-family: 'solway', serif;
    font-size: 1.75rem;
    line-height: 2rem;
    font-weight: bold;
}
.special {
    border-right: 3px solid black;
    font-family: 'roboto condensed', sans-serif;
    font-weight: 800;
    font-size: 2.75rem;
    line-height: 2.88rem;
}
.special2 {
    font-family: 'roboto', sans-serif;
    font-weight: 800;
    font-size: 2.75rem;
    line-height: 2.88rem;
}

    td {
    padding-top: .4rem;
    padding-right: .4rem;
    padding-bottom: .4rem;
    padding-left: .7rem;
}

/* ▬▬▬▬▬▬ TABLE 1 ▬▬▬▬▬▬ */

.table1 {
    width: 88%;
    margin: 7rem 6% 0rem 6%;
    border: 1.75rem groove #dab471;
    padding: .8rem;
    color: white;
    text-align: center;
    font-style: italic;
    background-color: black;
    font-family: 'crete round', serif;
    font-size: 4rem;
    line-height: 4.25rem;
    font-weight: bold;
}

/* ▬▬▬▬▬▬ TABLE 2 ▬▬▬▬▬▬ */

td {
    border:4px solid black;
    border-collapse: collapse;
}

.table2 {
    width: 88%;
    margin: 0rem 6% 0rem 6%;
    padding-bottom: 10rem;
    border-collapse: collapse;
    border: 3px solid black;
    border-left: 1.75rem groove #dab471;
    border-right: 1.75rem groove #dab471;
    border-bottom: 1.75rem groove #dab471;
    font-family: 'roboto', sans-serif;
    font-size: 2.25rem;
    line-height: 1.05;
    font-weight: bold;
    color: black;
}
.group2 {
    /*  TAB NUMBER  */
    width: 8%;
    color: black;
    font-style: normal;
    text-align: center;
    font-family: 'solway', serif;
    font-weight: 800;
    font-size: 3.75rem;
    line-height: 2.88rem;
}

.desc {
    width: 70%; /* DESCRIPTION */
    color: black;
    font-family: 'roboto condensed', sans-serif;
    font-weight: 600;
    font-size: 2.75rem;
    line-height: 2.88rem;
}
.size {
    width: 22%; /* SIZE */
    color: #611205;
    font-family: 'roboto condensed', sans-serif;
    font-weight: 600;
    font-size: 2.75rem;
    line-height: 2.88rem;
}

    .cent {
      text-align: center
    }

    .undr {
      text-decoration: underline
    }

    .roon {
      color: maroon
    }

    .leada {
      color: blue;
      margin: 3.13rem 0 3.13rem 0;
      text-align: center;
      font-family: 'solway', serif;
      font-weight: bold;
      font-size: 3rem;
      line-height: 3.25rem;
    }

    .leadb {
      text-align: center;
      font-family: 'solway', serif;
      font-weight: 400;
      font-size: 2.5rem;
      line-height: 3rem;
    }

    .leadc {
      text-align: center;
      font-style: normal;
      margin-bottom: 2.5rem;
      font-family: 'solway', serif;
      font-weight: 400;
      font-size: 2rem;
      line-height: 2.5rem;
    }

    .rip {
      margin: 0 auto;
      font-style: normal;
      color: black;
      font-family: 'solway', serif;
      font-size: 5rem;
      line-height: 1.1;
      font-weight: bold;
    }

    .begin {
      margin: 1.57rem 5% 0rem 5%;
      font-style: normal;
      text-align: center;
      color: black;
      font-family: 'Uncial Antiqua', serif;
      font-size: 6rem;
      line-height: 1.02;
      font-weight: bold;
    }

    .up {
      text-align: left;
      color: black;
      font-family: 'Uncial Antiqua', serif;
      font-size: 4.5rem;
      font-weight: bold;
    }

    .swatch {
      margin-top: 1.57rem;
      margin-left: 15%;
      margin-right: 15%;
      margin-bottom: 2.5rem;
      font-style: normal;
      text-align: left;
      color: black;
      font-family: 'solway', serif;
      font-size: 3.25rem;
      line-height: 1.1;
      font-weight: bold;
    }

/*▬▬▬▬▬▬ END CSS ▬▬▬▬▬▬*/
</style>
</head>

<body>

<div class="imagebg image1">
  <img class="bgimage" src="https://lh3.googleusercontent.com/pw/AP1GczN-6p3nTKhePo5VDPXYEMThXrpCJysY86DOGDUhVIzObqF_xLRfQCdfgR4c3dn7t61wVk1TnzJ_IO82xsSLYuGEBuWPApNp8HB-nVuxv7ZiWYkozw=w2000-h6000" alt="pic1">
  <!-- all content goes in here and will sit on top of the image -->
  <div class="content-area">

    <!-- add active class to anchor to bring the tab in front as required -->
    <nav class="svgtabs seventab">
      <a class="svgtab1" href="https://semicodin/nekoweb.org/h_thru_z/svgpar7_ani_grid-1_7.html">
        <span>1</span>
        <svg viewBox="0 0 64.823 11.023" xmlns="http://www.w3.org/2000/svg">
          <use href="#cutetab" />
        </svg>
      </a>
      <a class="svgtab2" href="https://semicodin/nekoweb.org/h_thru_z/svgpar7_ani_grid-2_7.html>
        <span>2</span>
        <svg viewBox="0 0 64.823 11.023" xmlns="http://www.w3.org/2000/svg">
          <use href="#cutetab" />
        </svg>
      </a>
      <a class="svgtab3" href="https://semicodin/nekoweb.org/h_thru_z/svgpar7_ani_grid-3_7.html>
        <span>3</span>
        <svg viewBox="0 0 64.823 11.023" xmlns="http://www.w3.org/2000/svg">
          <use href="#cutetab" />
        </svg>
      </a>

      <a class="svgtab4" href="https://semicodin/nekoweb.org/h_thru_z/svgpar7_ani_grid-4_7.html>
        <span>4</span>
        <svg viewBox="0 0 64.823 11.023" xmlns="http://www.w3.org/2000/svg">
          <use href="#cutetab" />
        </svg>
      </a>

      <a class="svgtab5" href="https://semicodin/nekoweb.org/h_thru_z/svgpar7_ani_grid-5_7.html>
        <span>5</span>
        <svg viewBox="0 0 64.823 11.023" xmlns="http://www.w3.org/2000/svg">
          <use href="#cutetab" />
        </svg>
      </a>

      <a class="svgtab6" href="https://semicodin/nekoweb.org/h_thru_z/svgpar7_ani_grid-6_7.html>
        <span>6</span>
        <svg viewBox="0 0 64.823 11.023" xmlns="http://www.w3.org/2000/svg">
          <use href="#cutetab" />
        </svg>
      </a>

      <a class="svgtab7" href="https://semicodin/nekoweb.org/h_thru_z/svgpar7_ani_grid-7_7.html>
        <span>7</span>
        <svg viewBox="0 0 64.823 11.023" xmlns="http://www.w3.org/2000/svg">
          <use href="#cutetab" />
        </svg>
      </a>

    </nav>
<!-- ▬▬▬▬▬▬ END 7 TABS ▬▬▬▬▬▬ -->

    <table class="table1">
      <tbody>
        <tr>
          <td>
            Seven Paper <span class="goudy">&amp;</span><br>
            Fabric Textures
          </td>
        </tr>
      </tbody>
    </table>

    <table class="table2">
      <tbody>

        <tr>
<td class="special">Tab</td>
<td class="desc">Material Description</td>
<td class="special2">Image Dimensions</td>
        </tr>

        <tr>
<td class="group2">1</td>
<td class="desc">PAPER SPECKLED SAND</td>
<td class="size">2000 X 6000</td>
        </tr>

        <tr>
<td class="group2">2</td>
<td class="desc">PAPER SPECKLED LILAC</td>
<td class="size">2000 X 6000</td>
        </tr>

        <tr>
<td class="group2">3</td>
<td class="desc">PAPER SPECKLED LIGHT PINK</td>
<td class="size">2000 X 6000</td>
        </tr>

        <tr>
<td class="group2">4</td>
<td class="desc">FABRIC LINEN PATTERN SAND</td>
<td class="size">1310 X 2990</td>
        </tr>

        <tr>
<td class="group2">5</td>
<td class="desc">PAPER RICE PINK</td>
<td class="size">1177 X 3364</td>
        </tr>

        <tr>
<td class="group2">6</td>
<td class="desc">PAPER SPECKLED BLUE</td>
<td class="size">2800 X 7191</td>
        </tr>

        <tr>
<td class="group2">7</td>
<td class="desc">PAPER RICE BEIGE</td>
<td class="size">2000 X 5024</td>
        </tr>

      </tbody>
    </table>

  </div>

</div>

<div class="contact">

<div class="divup">
<img src="https://lh3.googleusercontent.com/pw/AP1GczMBhKTp-SxrLa1g1Z2R68xn5THS16UkIHPINhG0RpS9ZPdygvC6od6BtZRs3ZHITaVTacz0O6tX3U3iCYcmBXt_B3muege_Z4y4G09Cj1_xUHJ_4w=w750-h200" alt="Divider">
</div>

    <div class="here">
    <span class="tanlinkhere">
    <a href="https://semicodin.nekoweb.org/vault/SVGPAR1_ANI.ZIP">
Code Here</a></span>
    </div>

    <div class="down">
      Long Press on &ldquo;Download Link&rdquo; and save.
    </div>

    <div class="thanks">
This code courtesy of the Immutable Patience<br>
of Paul O&rsquo;Brien at the Sitepoint Forums
    </div>

    <div class="quest">
Got Questions? You can PM me at<br>
    <span class="tanlinkquest"><a href="https://sitepoint.com/community/c/html-css/25">
the Sitepoint Forums</a></span><span class="clamiv35">!</span>
    </div>

    <div class="end">
CLICK HERE TO PROCEED<br>
    <span class="tanlinkend">
      <a href="https://semicodin.nekoweb.org/toc.html">
TO THE TABLE OF CONTENTS</a></span>
    </div>

<div class="divdown">
    <img src="https://lh3.googleusercontent.com/pw/AP1GczNCDiYkGZo-Wregca1CMKJtx2fR5hKCQlztDB_M--DunmR8lWzWKPtXwSiFmdxuKLcNJWPh3DNGf-F5HoNakVp-8QvcFtrsmdHpDg0KJ1qWE7dDZA=w750-h200">
</div>

      <!-- this following block of code is defining the svg and can be kept out of the way anyway on the page -->

      <!-- I'm putting a div around it so that we can just hide tehm all from impacting on the page -->

      <div class="hide-svg">

        <!-- this one is for the 7 tab variation -->
        <svg viewBox="0 0 64.823 11.023" xmlns="http://www.w3.org/2000/svg">
          <defs>
            <g id="cutetab" class="tab-unit">
              <clipPath id="shape7">
                <path d="M1425.55 1700.81c-9.892 0-10.854 3.666-13.164 7.378-1.671 2.685-4.696 5.999-6.313 5.96h51.153c-1.616.039-4.641-3.275-6.312-5.96-2.31-3.713-3.273-7.379-13.165-7.379h-7.346Z" transform="translate(-1397.992 -1700.126)" />
              </clipPath>
              <path style="fill:#000; stroke-width:3; stroke:#000" d="M1423.542 1700.126c-3.528.002-5.957.932-7.742 2.337-1.788 1.407-2.92 3.238-4.04 4.986-1.118 1.748-2.218 3.414-3.872 4.639-1.655 1.225-3.882 2.054-7.403 2.054h-2.493v.006h9.14a10.53 10.53 0 0 0 1.57-.96c1.896-1.404 3.089-3.244 4.213-5 1.124-1.757 2.18-3.43 3.732-4.65 1.552-1.222 3.607-2.044 6.91-2.044h16.185c3.303 0 5.359.823 6.91 2.045 1.552 1.222 2.609 2.893 3.733 4.65 1.123 1.757 2.317 3.599 4.213 5.002.475.352.992.673 1.56.957h6.657c-3.522 0-5.748-.83-7.403-2.056-1.654-1.226-2.754-2.89-3.873-4.64-1.118-1.748-2.251-3.582-4.039-4.99-1.785-1.405-4.214-2.334-7.743-2.336Z" transform="translate(-1397.992 -1700.126)" />

              <image class="tab-animated tan7" transform="translate(00 0)" width="270" height="220" href="https://semicodin.nekoweb.org/pics/parchment-a.jpg" clip-path="url(#shape7)" />

            </g>

          </defs>
        </svg>

      </div>

  </div><!-- closing CONTACT -->

</body>
</html>

I’m not following as the demo I already gave you has that title in place?

I don’t see a any background in the code you posted apart from your original background?

That would make no difference to you as I have told you where to place all your content. You don’t need to worry about the grid.

Why did you put my code in the wrong place completely?

You have a working example of where it goes?

The code goes after the tabs right here:

   </nav>

    <!--▬▬▬▬ CLOSING 7 TABS ▬▬▬-->

    <div class="imagebg image1">

etc..

Thats because of the above buit mainly because you missed the closing quote on every tab except the first.

<a class="svgtab2" href="https://semicodin/nekoweb.org/h_thru_z/svgpar7_ani_grid-2_7.html>

It should be this:

<a class="svgtab2" href="https://semicodin/nekoweb.org/h_thru_z/svgpar7_ani_grid-2_7.html">

That’s why you need to validate regularly. You don’t need it 100% valid but just pick up the typos.

Heres my demo with your image added although I don’t see why you would want an image like this one to be its full height as it just looks like a repeating image anyway?

To add your footer. block or whatever then the code would go after the closing imagebg div.

e.g. In Here before the hide-svg.

    </div><!-- closing imagebg -->

<!-- Black footer woukld go here -->

    <!-- this following block of code is defining the svg and can be kept out of the way anyway on the page -->
    <!-- I'm putting a div around it so that we can just hide tehm all from impacting on the page -->

    <div class="hide-svg">
1 Like

Wtf!? Now I know I’ve been working too hard.
oSIGH-BK

On my screen the background shows behind the tabs. Never mind. I’ll pick it up after I validate.

That’s the understatement of the century. I’m embarrassed as hell. I apologize Paul. I don’t have any excuse for not validating one last time before posting this last bit of code. I can only plead overworking. I always validate. I don’t know why I didn’t this time. I’m sorry Paul.

Paul somewhere along the line I disposed of (?) your working code and created this sh+t. My code has no title and the background showed behind the tabs. I don’t know where it came from but I need to backpedal and start from the beginning. I have to see where your last complete code is in the codepens you’ve uploaded because I’m completely confused. I don’t even have <main>!
oSIGH-BK

That’s because you placed the html I gave you before the tabs and not after them as in my examples. :).

Look at the working example for exact placement. There are no really complicated parts to this but you must place the html correctly for it to work.

1 Like

One thing I kept running into with the other tab projects was the background image routinely wasn’t long enough for the content. I just want to give myself and others backgrounds with a semblance of length to them. If they need them longer that’s on them. If I need them longer I’ll make them so.

I found entire sections of your code that repeated so I have to throw away 8 hours of work and start from the beginning. :nono: Again. And it isn’t helping that everytime I try and pull text in to the left margin you throw it right back to the right again. I have 4” of viewable screen Paul. Have a care to remember that I’m just trying to see the text. I’m not trying to be provocative; I’m just trying to see as much of each line as I possibly can. I can reformat it when done

I took a long-shot screenshot of my page and it was 49,469 pixels in length — this, on a 1080px-wide screenshot. I don’t know where the duplication(s) came from I only know that I don’t have the luxury of a desktop monitor where I could get a larger view to see where entire blocks of code are repeating. It’s a good thing I love to code because I can’t imagine too many people willing to put up with the volatility of a cellphone environment. Right now I’m going to set it aside for awhile and post another issue I’m having with an older project (the one with the fonts, remember?). Just please understand I can see so little of each line and refrain from reformatting it if possible. I can only ask.