Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The easiest way, given your current code, is probably:</p> <pre><code>echo " &lt;a href=\"update.php?id=" . $id . "\"&gt;Edit&lt;/a&gt; &lt;a href=\"confirm.php?id=" . $id . "\"&gt;Delete&lt;/a&gt;"; </code></pre> <p>Failing that, I'd personally use the following</p> <p>CSS:</p> <pre><code>ul {display: block; } ul li {display: inline; margin: 0 0.5em; border-left: 1px solid #000; } ul li:first-child {border-left: 0 none transparent; } </code></pre> <p>PHP</p> <pre><code>echo "&lt;ul&gt;"; echo "&lt;li&gt;&lt;a href=\"update.php?id=" . $id . "\"&gt;Edit&lt;/a&gt;&lt;/li&gt;"; echo "&lt;li&gt;&lt;a href=\"confirm.php?id=" . $id . "\"&gt;Delete&lt;/a&gt;&lt;/li&gt;"; echo "&lt;/ul&gt;"; </code></pre> <p>Incidentally the problem with your code is that, in html, all white-space (outside of <code>&lt;pre&gt;</code> tags or <code>&amp;nbsp;</code>) is collapsed down to a single space. So the underline of the <code>a</code> element extends into the spaces (as you've coded them, hence my first suggestion) enclosed within the link, and as any spaces between the closing of one <code>a</code> and the opening of the next is then collapsed into a single-space the underline does, indeed, run from one <code>a</code> up to the border of the <code>next</code> and, without trying to check, might even <em>overlap</em> each other, since that white-space is enclosed within the links.</p> <p>...I might have to re-write that explanation a bit. =/ Hopefully it's useful to you, though. Anyway, that's why I initially removed the white-space from the links, and put it <em>between</em> the links instead.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload