Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You could use a containing element for the links, ideally one that can apply a semantic relationship to its contents, I've used a <code>ul</code> (since it's basically a non-ordered list) and style that, rather than trying to style specific instances of an otherwise non-grouped set of elements:</p> <h3>html</h3> <pre><code>&lt;ul&gt; &lt;li&gt;&lt;a href="#" class="button"&gt; Profile &lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" class="button"&gt; Privacy &lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" class="button"&gt; Services &lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" class="button"&gt; Avatar &lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" class="button"&gt; Language &lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; </code></pre> <h3>css</h3> <pre><code>ul { width: 12em; border-radius: 1em; overflow: hidden; } ul li { padding: 0.5em; background-color: #eee; } </code></pre> <p><a href="http://www.jsfiddle.net/davidThomas/LsdTH/" rel="nofollow">JS Fiddle demo</a>.</p> <p>If you're targeting browsers with reliable implementations of <code>last-child</code> you could also use the <code>:first-child</code> and <code>:last-child</code> pseudo elements:</p> <h3>css:</h3> <pre><code>ul li { width: 12em; padding: 0.5em; background-color: #eee; } ul li:first-child { -webkit-border-top-radius: 1em; -moz-border-radius: 1em 1em 0 0; border-radius: 1em 1em 0 0; } ul li:last-child { -webkit-border-bottom-radius: 1em; -moz-border-radius: 0 0 1em 1em; border-radius: 0 0 1em 1em; } </code></pre> <p><a href="http://www.jsfiddle.net/davidThomas/LsdTH/1/" rel="nofollow">JS Fiddle demo</a></p>
 

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