Strategies for a Space Atop a Page with a Background

In teacher mode now so don’t take it to heart … :slight_smile:

I wholeheartedly do not agree :slight_smile:

There is no insidious padding on the p element. A p element only has margins by defaults and if you set that to zero there is no difference between a break a div or a p tag.

Here is a screenshot of the text side by side. One uses breaks and the other uses p tags. The only css for the p tag is to set margin to zero. The result is identical.

You don’t have to do anything else but use the correct html.

This semantic html:

<p>There was once an example from Femley,<br>
Whose markup was of dubious quality.<br>
The validator complained,<br>
So the author was pained,<br>
To move the error from the markup to the rhyming.</p>

Will be exactly the same as this following html when the p margin is set to zero.

There was once an example from Femley,<br>
Whose markup was of dubious quality.<br>
The validator complained,<br>
So the author was pained,<br>
To move the error from the markup to the rhyming.</br>

The only thing that you need to manage is the space between verses and instead of adding two breaks you would add a class to the existing p tag to give you the exact bottom margin required (not a guesstimate that 2 breaks will give you).

There is no complication or other things to consider. All your efforts and examples are flawed by incorrect coding practices.

So far every example you have given me where you have used breaks I have reproduced using the correct html and there are no issues. It is straight forward but you have to pay attention and do it correctly or all bets are off.

You may think it’s not an issue but I can guarantee than any good developer who sees two or more breaks in a row and breaks and divs abused as paragraphs will have a wry smile and walk away.

The visuals of a page should be in the css. Html is the semantic structure. If you have put two or more breaks in passages then you can’t control that passage from the css anymore. To change things you have to go into the html and put things in or take things out. That is not maintainable or desirable.

Caveat: I realise that this page is basically for you alone so feel free to do it the way you can manage but please don’t say it can’t be done properly more easily.

2 Likes

Why won’t it double space? I’ve put in enough p sets that it should, shouldn’t it? I presume that you can hang anything you can hang on a <div> on a <p> tag as well? :face_with_diagonal_mouth:

<!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 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: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=Henny+Penny&display=swap" rel="stylesheet">

  <title>__(shape-outside: ellipse) &#7172; by semicodin</title>

<style>

p {margin: 0}
* {box-sizing: border-box;}
.undr {text-decoration: underline}

body {
    width: 950px;
    margin: 0;  /* note this doesn’t work with FLOATS :( */
    padding: 0;
    border: 0;
    outline: 0;
    color: black;
    font-size: 100%;
    background: transparent;
    vertical-align: text-top;
    font-family: 'solway', serif;
    font-size: 2rem;
    line-height: 1.02;
    font-weight: 600;
}

.blu {color: blue}
.crim {color: crimson}
.blub {color: blue; font-weight: bold;}
.break {margin-top: 1.25rem}

.centindent1 {
    text-align: center;
    margin-top: 3.5rem;
}
aside {
    padding: 1.5rem 5rem 1.5rem 5rem;
    margin-bottom: 6rem;
    background-image: url("https://lh3.googleusercontent.com/pw/AP1GczMPUBfBE6q_7DuPDZg-SeMrTwp-mUqfXKTvRVEPar_avikeVcibjtzA4r4Dqyz4VB2SmfraFHCp90aaSBvsAGRcXT4YnmrFWNEkeQwdDCzP-kgTOQ=w950-h950");
    width: 950px;
    height: 950px;
}
.notes {
    margin: 0;
    font-style: normal;
    text-align: center;
    color: black;
    font-family: 'solway', serif;
    font-size: 2.25rem;
    line-height: 2.38rem;
    font-weight: bold;
}
.henpen {
    text-align: center;
    color: black;
    margin-top: 1.5rem;
    font-size: 4rem;
    line-height: 1.02;
    font-weight: 700;
    font-family: 'Henny Penny', cursive;
}

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

:root {
    --tab1color: #ffe5fe;
    --tab2color: teal;
    --tab3color: #caffff;
    --border-color: #000;
    /* this one above is the filter color that makes the top border*/
    --bottom-border-color: #000;
    /* no need to change*/
}

.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://assets.codepen.io/74047/PARCHMENT-A.jpg");
    background-position: -3px -8px;
    transform: perspective(100px) rotateX(36deg) translateY(5px);
    border-radius: 20px 20px 0 0;
}

.bkdimg2 {
    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 {
    z-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;
}

/* ━━━ BACKGROUND & POEM-A ━━━ */

.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: black;
    margin-top: 3.13rem;
    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: bold;
    font-size: 2.5rem;
    line-height: 3rem;
}

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

.poem-a {
    margin-top: 3.13rem;
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 2.5rem;
    font-style: normal;
    text-align: left;
    color: black;
    font-family: 'solway', serif;
    font-size: 2.25rem;
    line-height: 2.38rem;
    font-weight: bold;
}

.parch {
    background-image: url('https://lh3.googleusercontent.com/pw/AP1GczOwNR1n9BJD_duNlaAmcp9BoDYm5xk-k0tBWV70BcThwR3CVkHBHXOFuHk-pHqtEROpyLL8B8314huJJUfMvey2_8iqUPGZlvSt8NSlKERCbdBZbw=w890-h1080');
    background-size: 100% 100%;
    padding: 1rem;
    background-position: 0 -10px;
}

p.circle {
    clear: both;
    margin: 0;
    padding: 0rem 0;
}

.circle:before {
    content: "";
    float: left;
    shape-outside: ellipse(50% 30% at left);
    width: 110px;
    height: 370px;
    margin-top: -3rem;
}

.circle2:before {
    content: "";
    height: 570px;
}

.cinlink a:link {
    color: #611205;
    padding-top: 1rem;
    font-weight: bold;
}

.cinlink a:visited {
    color: #611205;
    padding-top: 1rem;
    font-weight: bold;
}

.foot {
    color: #ffffee;   /* ivory */
    margin-top: 1rem;
    text-align: left;
    font-style: normal;
    margin-bottom: 3.13rem;
    font-family: 'solway', serif;
    font-weight: bold;
    font-size: 2rem;
    line-height: 2.13rem;
}
.contact {
      margin: 0;
      padding: 0rem 0rem 4rem 0rem;
      background-color: #d7bd82;
      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: black;
    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;
}
.tiny {
    color: #888888;
    text-align: center;
    margin: 1rem 4rem 1rem 4rem;
    font-family: '1 prime', monospace;
    font-size: 1rem;
    line-height: 1.13rem;
    font-weight: bold;
}
.thanks {
    color: black;
    text-align: center;
    margin: 0rem 4rem 1rem 4rem;
    font-family: 'solway', serif;
    font-size: 2rem;
    line-height: 1.02;
    font-weight: bold;
}
.quest {
    color: black;
    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: black;
    text-align: center;
    margin: 1rem 4rem 2.5rem 4rem;
    font-family: 'solway', serif;
    font-size: 2rem;
    line-height: 1.02;
    font-weight: bold;
}
.clambu35 {
	color: blue;
	font-style: italic;
	font-family: roboto, sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
}

a:active {color: blue}
a:hover {color: crimson}
a:link {color: blue}
a:visited {color: blue}

/*▬▬▬▬▬▬ END CSS ▬▬▬▬▬▬*/

</style>
</head>

<body>

<aside>
<div class="centindent1">
<a href="https://web.dev/articles/shapes-getting-started">Read Razvan Caliman&rsquo;s 23-Page<br>
Primer on the CSS shape-outside</a> 
</div><!-- CLOSING CENTINDENT1 -->
<div class="notes">
<a href="https://web.dev/articles/shapes-getting-started">property</a>. I&rsquo;ve included the entire article as a .PDF in your .ZIP file — it&rsquo;s good! The <span class="crim"><span class="undr">shape-outside: ellipse</span> shown here</span> allowed me to create two virtual ellipses for the poem to flow around. See <a href="https://semicodin.nekoweb.org/shape-outside_(URL)_01.html">this page of mine</a> for more detail about shape-outside. 
<div class="break">
The goal for this particular page was to <i>stylishly</i> move the text around an area of the parchment background that was too dark for black text. What I couldn&rsquo;t have antcipated is the effect &ldquo;sculpting&rdquo; the text in this fashion would have upon the poem itself! There is a relationship between the two &ldquo;waves&rdquo; created by the <span class="crim"><span class="undr">space-outside: ellipse</span></span> used to form them: The resulting two stanzas of the poem draw from their shape new depth!
</div><!-- CLOSING BREAK -->
<div class="henpen">semicodin</div>
</div><!-- CLOSING NOTES -->
</aside>

  <div class="bkdimg2 tab1active">
    <div class="ctr ctr2">
      <div class="tab"><span class="tablabel3"><a href="https://en.m.wikipedia.org/wiki/Thomas_Merton">T. Merton</a></span></div>
    </div>
    <div class="ctr ctrmid">
      <div class="tab"><span class="tablabel3"><a href="https://en.m.wikipedia.org/wiki/Zhuang_Zhou">Chuang Tzu</a></span></div>
    </div>
    <div class="ctr ctr3">
      <div class="tab"><span class="tablabel3"><a href="https://en.m.wikipedia.org/wiki/Zhuangzi_(book)">&ldquo;Zhuangzi&rdquo;</a></span></div>
    </div>
  </div>

  <div class="parch">

    <div class="poem-a">

      <div class="leada">
        &ldquo;The Empty Boat&rdquo;
      </div>
      <div class="leadb">
        From <i>&ldquo;The Way of Chuang Tzu&rdquo;</i>
      </div>
      <div class="leadc">
        Interpreted by Thomas Merton, Trappist Monk<br>
        1915-1968
      </div>

      <div class="twrap1">
        <p class="circle">
          He who rules men lives in confusion;</p><p>
          He who is ruled by men lives in sorrow.</p><p>
          Yao therefore desired</p><p>
          Neither to influence others</p><p>
          Nor to be influenced by them.</p><p>
          The way to get clear of confusion</p><p>
          And free of sorrow</p><p>
          Is to live with Tao</p><p>
          In the land of the great Void.</p><p>
        </p><p></p>
        <p class="circle circle2">
          If a man is crossing a river</p><p>
          And an empty boat collides with his own skiff,</p><p>
          Even though he be a bad-tempered man</p><p>
          He will not become very angry.</p><p>
          But if he sees a man in the boat,</p><p>
          He will shout at him to steer clear.</p><p>
          If the shout is not heard, he will shout again,</p><p>
          And yet again, and begin cursing.</p><p>
          And all because there is somebody in the boat.</p><p>
          Yet if the boat were empty,</p><p>
          He would not be shouting, and not angry.
        </p>
        </div><!-- ENDING TWRAP1 -->
      <p></p>

      <div class="indent">
        If you can empty your own boat</p><p>
        Crossing the river of the world,</p><p>
        No one will oppose you,</p><p>
        No one will seek to harm you.</p><p>
      </div>
      <p></p>
      <p>
      The straight tree is the first to be cut down,</p><p>
      The spring of clear water is the first to be drained dry.</p><p>
      If you wish to improve your wisdom</p><p>
      And shame the ignorant,</p><p>
      To cultivate your character</p><p>
      And outshine others;</p><p>
      A light will shine around you</p><p>
      As if you had swallowed the sun and the moon:</p><p>
      You will not avoid calamity.
      </p><p></p>

      <p>A wise man has said:</p>

      <div class="indent">
        &ldquo;He who is content with himself</p><p>
        Has done a worthless work.</p><p>
        Achievement is the beginning of failure.</p><p>
        Fame is the beginning of disgrace.&rdquo;</p><p>
      </div><p></p>
      <p>
      Who can free himself from achievement</p><p>
      And from fame, descend and be lost</p><p>
      Amid the masses of men?</p><p>
      He will flow like Tao, unseen,</p><p>
      He will go about like Life itself
      With no name and no home.</p><p>
      Simple is he, without distinction.</p><p>
      To all appearances he is a fool.</p><p>
      His steps leave no trace. He has no power.</p><p>
      He achieves nothing, has no reputation.</p><p>
      Since he judges no one</p><p>
      No one judges him.</p><p>
      </p><p></p>
      <div class="indent">Such is the perfect man:</p><p>
        His boat is empty.
      </div><p></p>
      <p class="foot">
      [xx. 2.]</p><p>
      [xx. 2, 4.]</p><p>
      114</p><p>
      115
      </p>
    </div> <!--  Closing POEM-A  -->
  </div> <!--  Closing PARCH  -->

    <div class="contact">

    <div class="here">
    <p class="cinlink">
    <a href="https://semicodin.nekoweb.org/(shape-outside_ellipse)_01">
Code Here.</a>
    </p>
    </div>

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

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

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

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

</body>
</html>

If it wasn’t you I’d think you were taking the mickey :slight_smile:

What is this nonsense again.


<p class="circle">
          He who rules men lives in confusion;</p><p>
          He who is ruled by men lives in sorrow.</p><p>
          Yao therefore desired</p><p>
          Neither to influence others</p><p>
          Nor to be influenced by them.</p><p>
          The way to get clear of confusion</p><p>
          And free of sorrow</p><p>
          Is to live with Tao</p><p>
          In the land of the great Void.</p><p>
        </p><p></p>

What is that abomination :slight_smile:
I told you never to use empty tags and you added 10 of them!

I’ve given you the semantic code for that section already.

<p class="circle">
  He who rules men lives in confusion;<br>
  He who is ruled by men lives in sorrow.<br>
  Yao therefore desired<br>
  Neither to influence others<br>
  Nor to be influenced by them.<br>
  The way to get clear of confusion<br>
  And free of sorrow<br>
  Is to live with Tao<br>
  In the land of the great Void.
</p>

The class of circle has 1em padding top and bottom which will give you the extra space. if you need more space then add an extra class and use that for the extra margin if needed.

e.g.

<p class="verse circle">
  He who rules men lives in confusion;<br>
  He who is ruled by men lives in sorrow.<br>
  Yao therefore desired<br>
  Neither to influence others<br>
  Nor to be influenced by them.<br>
  The way to get clear of confusion<br>
  And free of sorrow<br>
  Is to live with Tao<br>
  In the land of the great Void.
</p>

p.verse{
margin-bottom:1em;/* or whatever it needs to be*/
}
2 Likes

semicodin, I really think that you need to take
time out to carefully read and inwardly digest
the content which may be found here…

Mastering margin collapsing

1 Like

I’m creating two carrier returns, as with a typewriter — two linefeeds? TWO <BR>s.

Two of what we have been arguing about for the past (however many) hours. Stop being mean Paul. It doesn’t become you.

Oh forget it. I try to work with this and you’re argumentative and mean? You know what? Let’s just say I’m coding for myself. I’ll put a polite note in each of my projects that states that they should be using <p> tags. What they’ll see is what I designed and they can do with that what they will.

I take it no one had objections to the padding I put in as per yours and Archibald’s instructions. It looks good to me so I’ll consider it final. Thank you for your help Paul.

And you are the most curious of all! In this post you are quoting my code (!?) using <BRs and asking What is wrong with this?

I agree! What is so bad about using <BR>s? Does the world come to an end if in my eccentricity I prefer to use <BR>s? No it does not. It’s my harmless eccentricity that hurts no one and pleases me immeasurably to have something evocative of a typewriter. A <p></p> represents a linefeed in my mind. Two sets of them represent two linefeeds.

“Double spacing” as we old people refer to it.

I code for myself and we’ll leave it there. It’s good to know that there is an emergency switch to disable <p>’s padding. It would have been nice to know this two years ago but better late than never. Now please may we just code?

But — stop the presses! You are using <BR>s? Then you’re admitting that you cannot use a <p> tag on every line? You’re agreeing with me? Oh I completely do not understand you Paul. I’ll just code for myself.

CUTE GREEN-B TYPEWRITER WH 390px SHORT RND READY

Hi there semicodin,

I think that you misunderstood my post

I just changed your use of all of these entries

<p></p>

…to

<br>

That is why I wrote…

The question was not addressed to you in particular
but posted in general just as a coding observation. :rolleyes:

Snady, the world is upside down. One minute I’m roundly abused for using <BR> tags . . . and the next both you and Paul are using them!

ANI bSHRUG

No <br> here :grinning: . . . .

Can anybody tell me why this won’t display Paul’s animated tags? Here I get all the way to getting Merton to wrap on my own account and I can’t get Paul’s tabs to display. Here is the code. His wrapping lands perfectly. Perfectly. Snady, you’re my go-to for SVG. How can we get these beauties to display?

<!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=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:wght@100;200;300;400;500;600;700;800;900&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=Roboto+Condensed:ital,wght@0,400;0,700;1,400;1,700&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=Calistoga&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=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">
  <link href="https://fonts.googleapis.com/css2?family=Metal+Mania&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Fira+Sans+Extra+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">

<title>The Assassinatiom of Thomas Merton by semicodin &#7172; with Huge Assistance from  &lsquo;Archibald&rsquo; and Paul O&rsquo;Brien of Sitepoint Forums</title>

  <style>

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

p {
    line-height: 1
}

#counter {
    margin-top: 2.5rem;
    text-align: center;
    position: absolute;
    bottom: 0;
    max-width: 100%;

}

.main {
      margin: 7rem 3.13rem 7rem 3.13rem;
      background-color: #ffffee;
      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;
    }

.monk > img {
	float: left;
	margin-left: 1rem;
	shape-outside: polygon(100% 0, 100% 100%, 0 100%, 0 70%, 75% 0);
}

.monk > p {
	margin: 0;
	text-align: left;
}

.cent {text-align: center}
.undr {text-decoration: underline}
.seam {
    border-bottom: 10px solid black;
}
.roon {color: maroon}

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

    :root {
      --tab1color: #ffe5fe;
      --tab2color: teal;
      --tab3color: #caffff;
      --border-color: #000;
      /* this one above is the filter color that makes the top border*/
      --bottom-border-color: #000;
      /* no need to change*/
    }

    .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/vault/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;}

    /*
    .ctr2 .tab span *,
    .ctr2 .tablabel3:before {
     background: var(--tab1color);
      color: #000;
    }

    .ctr2 .tab:before,
    .ctr2 .tab:after {
      box-shadow: 0 34px var(--tab1color);
    }
    .ctr3 .tab span *,
    .ctr3 .tablabel3:before {
      background: var(--tab3color);
      color: #000;
    }
    .ctr3 .tab:before,
    .ctr3 .tab:after {
      box-shadow: 0 34px var(--tab3color);
    }
*/
    .tab1active .ctr,
    .tab2active .ctr,
    .tab3active .ctr {
      position: absolute;
    }
    .tab1active .ctr2,
    .tab2active .ctrmid,
    .tab3active .ctr3 {
      position: relative;
      z-index: 4;
    }
    .tab3active .ctr2 {
      z-index: 1;
    }

/* ━━━━━━ BACKGROUND & POEM-A ━━━━━━ */

    .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: black;
      margin-top: 3.13rem;
      text-align: center;
      font-family: 'crete round', 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;
    }
    .parch {
      background-image: url('https://lh3.googleusercontent.com/pw/AP1GczOlyEgE-HLy3sGvlpsiiifoiEukf6i8ndkMD7oCPa-eMu7cHQscoSXEzAog6iNXvAFuF-JApkkfxSIz6_kA9Ro1-1aTzsWoLebvmCQB5TKPgdC80A=w1080-h1620');
      background-size: 100% 100%;
      padding: 1rem;
      background-position: 0 -10px;
    }
.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/vault/merton1215.png);
      shape-margin: 1rem
    }
.foot {
      color: #ffffee; /* ivory */
      margin-top: 1rem;
      text-align: left;
      font-style: normal;
      margin-bottom: 3.13rem;
      font-family: 'crete round', serif;
      font-weight: bold;
      font-size: 2rem;
      line-height: 2.13rem;
    }

/*▬▬▬▬▬▬ END CSS ▬▬▬▬▬▬*/

</style>
</head>

<body>
<main>

<!-- 3 TABS: add active class to anchor to bring the tab in front as required -->
  <nav class="svgtabs threetab">

    <a class="svgtab1" href="#">
      <span>Three Tab</span>

      <svg viewBox="0 0 116.417 11.875" xmlns="http://www.w3.org/2000/svg">
        <use href="#anitab-medium" />
      </svg>

    </a>
    <a class="svgtab2" href="#">
      <span>Three Tab</span>
      <svg viewBox="0 0 116.417 11.875" xmlns="http://www.w3.org/2000/svg">
        <use href="#anitab-medium" />
      </svg>
    </a>

    <a class="svgtab3" href="#">
      <span>Three Tab</span>
      <svg viewBox="0 0 116.417 11.875" xmlns="http://www.w3.org/2000/svg">
        <use href="#anitab-medium" />
      </svg>
    </a>

  </nav>

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

<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">
<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>

<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>

<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/vault/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 con-tact with a faulty fan that was found lying across his body.</span>
</p>
</div><!-- closing death -->

  <!-- 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 three tab version -->
<!-- medium tab -->

    <svg viewBox="0 0 116.417 11.875" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">

      <defs>
        <g id="anitab-medium" class="tab-unit">
          <clipPath id="shape3">
            <path d="M93.07 302.303c-11.069 0-14.631.576-18.744 8.02-3.005 5.437-6.063 6.224-6.8 7.09h95.002c-.737-.866-3.795-1.653-6.8-7.09-4.113-7.444-7.675-8.02-18.745-8.02Z" transform="translate(-56.819 -301.538)" />
          </clipPath>
          <path style="fill:#000; stroke-width:4; stroke:#000" d="M87.484 301.538c-4.09.011-6.897 1.05-8.968 2.625-2.083 1.583-3.41 3.653-4.72 5.63-1.31 1.979-2.601 3.868-4.552 5.263-1.951 1.395-4.582 2.342-8.723 2.342H56.82v.015h11.236a12.469 12.469 0 0 0 2.038-1.172c2.208-1.579 3.604-3.656 4.92-5.642 1.317-1.987 2.556-3.883 4.385-5.274 1.83-1.39 4.264-2.33 8.15-2.33h54.957c3.887 0 6.321.94 8.15 2.33 1.83 1.391 3.07 3.287 4.386 5.274 1.316 1.986 2.712 4.063 4.92 5.642a12.47 12.47 0 0 0 2.038 1.172h11.236v-.015h-3.702c-4.14 0-6.772-.947-8.723-2.342-1.95-1.395-3.242-3.284-4.552-5.262-1.31-1.978-2.637-4.048-4.719-5.63-2.071-1.575-4.879-2.615-8.97-2.626Z" transform="translate(-56.819 -301.538)" />
          <image class="tab-animated tan3" transform="translate(00 0)" width="270" height="220" href="https://semicodin.nekoweb.org/vault/parchment-a.jpg" clip-path="url(#shape3)" />
        </g>
      </defs>

    </svg>
    </div>
</div><!-- closing parchment -->
</div><!-- closing main -->

</body>
</html>

I’ll code something 412px wide over my very dead body.

FLY-TONGUE_ani-0AF78800

Maybe you should put a few more in, just for good measure? No, actually, I’m joking. Paul keeps telling you this is completely the wrong way to do things, but you don’t seem to want to hear it, unfortunately!

2 Likes

I don’t like my line heights to be padded. No, I really don’t like it. And I don’t like revisiting the issue ad nauseum. I love Sitepoint — I must given the praise I lavish on Paul and Archibald — but even I have a breaking point. I come here to have fun learning HTML, not to be bullied.

If I haven’t adopted the practice by now I frankly never will. It’s unfortunate because I’m persuadable on almost anything else — not bad for a 67-year old self-avowed eccentric with issues being outdoors following a pit bull attack almost 40 years ago. I’m an indoors guy and HTML is the perfect hobby for me because I’m not naturally gifted with it. Only time will tell if yours is a big enough tent for the likes of me. Peace.

You are not listening or paying attention. Go back through every post I have made and I have said the same thing. Please don’t just rant away but double check what I and others have said all along.

I have given numerous examples of the correct approach for using breaks in a poem.

Here it is again:

Quote:

A break is perfect for breaking lines of a poem but the whole verse is wrapped in a p tag and no break should appear on the last line.

So this is perfect:

 <p class="indent">
        If you can empty your own boat<br>
        Crossing the river of the world,<br>
        No one will oppose you,<br>
        No one will seek to harm you.
  </p>

Every example I have given you has been the same including the sections I recoded in those side by side views.

What is incorrect is this:


<br>
<br>
 If you can empty your own boat<br>
 Crossing the river of the world,<br>
 No one will oppose you,<br>
 No one will seek to harm you.
<br>
<br>

https://www.w3.org/TR/2011/WD-html5-author-20110809/the-br-element.html#:~:text=The%20br%20element%20represents%20a,dots%2C%20or%20as%20extra%20spacing.

I will not mention it again

3 Likes

3 things:

  1. You haven’t included any of the css for the svgtabs at all.
  2. You changed the image size so the keyframes need to be tweaked to show it properly.
  3. get rid of the seam element and put the border on the bottom of the nav.

Here is the code to make that happen.

        .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.threetab a {
      margin-right: -7rem;
    }

    .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.threetab svg {
      width: 440px;
      height: 60px;
    }

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

    .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;
      }
    }

Remove the old tab code so you don’t get confused.

1 Like

Hallelujah.

Then we are in agreement. <br> tags are a vital component of any HTML. I thought you were arguing for their complete removal and nothing in their place but <p> tags for every single line break. I did say as much Paul when I said (words to the effect of) What I am agreeable to is ~~. You’re my mentor Paul. I don’t hold anyone higher on this forum in esteem. But you have a hair trigger at times that is truly formidable. Put that on the shelf. You’re among people who love you Paul and that includes me. Now let’s code!

Okay the two problems I’m having are 1) there is a margin between the tabs and parchment which I scoured the CSS for but could not find, and 2) (not your fault; we never discussed what I wanted on the tabs so how could you know) I want to replicate the three links we’re using on my <shape-outside: ellipse> for The Empty Boat, namely this:

    <a class="svgtab1" href="#">
      <span><a href="https://en.m.wikipedia.org/wiki/Thomas_Merton">T. Merton</a></span></span>

      <svg viewBox="0 0 116.417 11.875" xmlns="http://www.w3.org/2000/svg">
        <use href="#anitab-medium" />
      </svg>

    </a>
    <a class="svgtab2" href="#">
      <span><a href="https://en.m.wikipedia.org/wiki/Zhuang_Zhou">Chuang Tzu</a></span></span>
      <svg viewBox="0 0 116.417 11.875" xmlns="http://www.w3.org/2000/svg">
        <use href="#anitab-medium" />
      </svg>
    </a>

    <a class="svgtab3" href="#">
      <span><a href="https://en.m.wikipedia.org/wiki/Zhuangzi_(book)">&ldquo;Zhuangzi&rdquo;</a></span>
      <svg viewBox="0 0 116.417 11.875" xmlns="http://www.w3.org/2000/svg">
        <use href="#anitab-medium" />
      </svg>
    </a>

Here is what I cleaned up in the code for Merton. I may have cut too much but I’m more inclined to think I cut too little:

<!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=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:wght@100;200;300;400;500;600;700;800;900&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=Roboto+Condensed:ital,wght@0,400;0,700;1,400;1,700&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=Calistoga&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=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">
  <link href="https://fonts.googleapis.com/css2?family=Metal+Mania&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Fira+Sans+Extra+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">

<title>merton 9 &#47;The Assassinatiom of Thomas Merton by semicodin &#7172; with Huge Assistance from  &lsquo;Archibald&rsquo; and Paul O&rsquo;Brien of Sitepoint Forums</title>

  <style>

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

p {
    line-height: 1
}

.main {
      margin: 7rem 3.13rem 7rem 3.13rem;
      background-color: #ffffee;
      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;
    }

.cent {text-align: center}
.undr {text-decoration: underline}
.seam {
    border-bottom: 10px solid black;
}
.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/vault/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.threetab a {
      margin-right: -7rem;
    }

    .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.threetab svg {
      width: 440px;
      height: 60px;
    }

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

    .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;
      }
    }

/* ━━━━━━ BACKGROUND & POEM-A ━━━━━━ */

    .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: black;
      margin-top: 3.13rem;
      text-align: center;
      font-family: 'crete round', 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;
    }
    .parch {
      background-image: url('https://lh3.googleusercontent.com/pw/AP1GczOlyEgE-HLy3sGvlpsiiifoiEukf6i8ndkMD7oCPa-eMu7cHQscoSXEzAog6iNXvAFuF-JApkkfxSIz6_kA9Ro1-1aTzsWoLebvmCQB5TKPgdC80A=w1080-h1620');
      background-size: 100% 100%;
      padding: 1rem;
      background-position: 0 -10px;
    }
.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/vault/merton1215.png);
      shape-margin: 1rem
    }
.foot {
      color: #ffffee; /* ivory */
      margin-top: 1rem;
      text-align: left;
      font-style: normal;
      margin-bottom: 3.13rem;
      font-family: 'crete round', serif;
      font-weight: bold;
      font-size: 2rem;
      line-height: 2.13rem;
    }

/*▬▬▬▬▬▬ END CSS ▬▬▬▬▬▬*/

</style>
</head>

<body>
<main>

<!-- 3 TABS: add active class to anchor to bring the tab in front as required -->
  <nav class="svgtabs threetab">

    <a class="svgtab1" href="#">
      <span><a href="https://en.m.wikipedia.org/wiki/Thomas_Merton">T. Merton</a></span></span>

      <svg viewBox="0 0 116.417 11.875" xmlns="http://www.w3.org/2000/svg">
        <use href="#anitab-medium" />
      </svg>

    </a>
    <a class="svgtab2" href="#">
      <span><a href="https://en.m.wikipedia.org/wiki/Zhuang_Zhou">Chuang Tzu</a></span></span>
      <svg viewBox="0 0 116.417 11.875" xmlns="http://www.w3.org/2000/svg">
        <use href="#anitab-medium" />
      </svg>
    </a>

    <a class="svgtab3" href="#">
      <span><a href="https://en.m.wikipedia.org/wiki/Zhuangzi_(book)">&ldquo;Zhuangzi&rdquo;</a></span>
      <svg viewBox="0 0 116.417 11.875" xmlns="http://www.w3.org/2000/svg">
        <use href="#anitab-medium" />
      </svg>
    </a>

  </nav>

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

<div class="parch">

<div class="begin">
merton_9 &#47;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">
<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>

<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>

<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/vault/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 con-tact with a faulty fan that was found lying across his body.</span>
</p>
</div><!-- closing death -->

  <!-- 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 three tab version -->
<!-- medium tab -->

    <svg viewBox="0 0 116.417 11.875" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">

      <defs>
        <g id="anitab-medium" class="tab-unit">
          <clipPath id="shape3">
            <path d="M93.07 302.303c-11.069 0-14.631.576-18.744 8.02-3.005 5.437-6.063 6.224-6.8 7.09h95.002c-.737-.866-3.795-1.653-6.8-7.09-4.113-7.444-7.675-8.02-18.745-8.02Z" transform="translate(-56.819 -301.538)" />
          </clipPath>
          <path style="fill:#000; stroke-width:4; stroke:#000" d="M87.484 301.538c-4.09.011-6.897 1.05-8.968 2.625-2.083 1.583-3.41 3.653-4.72 5.63-1.31 1.979-2.601 3.868-4.552 5.263-1.951 1.395-4.582 2.342-8.723 2.342H56.82v.015h11.236a12.469 12.469 0 0 0 2.038-1.172c2.208-1.579 3.604-3.656 4.92-5.642 1.317-1.987 2.556-3.883 4.385-5.274 1.83-1.39 4.264-2.33 8.15-2.33h54.957c3.887 0 6.321.94 8.15 2.33 1.83 1.391 3.07 3.287 4.386 5.274 1.316 1.986 2.712 4.063 4.92 5.642a12.47 12.47 0 0 0 2.038 1.172h11.236v-.015h-3.702c-4.14 0-6.772-.947-8.723-2.342-1.95-1.395-3.242-3.284-4.552-5.262-1.31-1.978-2.637-4.048-4.719-5.63-2.071-1.575-4.879-2.615-8.97-2.626Z" transform="translate(-56.819 -301.538)" />
          <image class="tab-animated tan3" transform="translate(00 0)" width="270" height="220" href="https://semicodin.nekoweb.org/vault/parchment-a.jpg" clip-path="url(#shape3)" />
        </g>
      </defs>

    </svg>
    </div>
</div><!-- closing parchment -->
</div><!-- closing main -->

</body>
</html>

I already mentioned that in my previous post and you need to remove the <div class="seam">&nbsp;</div> completely. That will reduce the gap as the bottom border is already on the nav.

You can’t nest anchors. The tab is already a link so just put the url in the anchor as per normal.

e.g.

<!-- 3 TABS: add active class to anchor to bring the tab in front as required -->
  <nav class="svgtabs threetab">

    <a class="svgtab1" href="https://en.m.wikipedia.org/wiki/Thomas_Merton">
      <span>T. Merton</span>

      <svg viewBox="0 0 116.417 11.875" xmlns="http://www.w3.org/2000/svg">
        <use href="#anitab-medium" />
      </svg>

    </a>
    <a class="svgtab2" href="https://en.m.wikipedia.org/wiki/Zhuang_Zhou">
      <span>Chuang Tzu</span>
      <svg viewBox="0 0 116.417 11.875" xmlns="http://www.w3.org/2000/svg">
        <use href="#anitab-medium" />
      </svg>
    </a>

    <a class="svgtab3" href="https://en.m.wikipedia.org/wiki/Zhuangzi_(book)">
      <span>&ldquo;Zhuangzi&rdquo;</span>
      <svg viewBox="0 0 116.417 11.875" xmlns="http://www.w3.org/2000/svg">
        <use href="#anitab-medium" />
      </svg>
    </a>
  </nav>

The tabs are tight to the top of the screen so you may want to add some padding-top to the body element unless you are putting some text or heading there.