Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to keep curved borders using css 3
    primarykey
    data
    text
    <p>Border-radius style is not working for below code</p> <p><strong>HTML</strong></p> <pre><code>&lt;ul id="menu" class="menu"&gt; &lt;li class="active"&gt;&lt;a href="#description"&gt;Limerick One&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#usage"&gt;Limerick Two&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#download"&gt;Limerick Three&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;​ </code></pre> <p><strong>CSS:</strong></p> <pre class="lang-css prettyprint-override"><code>.menu { padding: 0; clear: both; border-radius:10px; } .menu li { display: inline; } .menu li a { padding: 6px; float:left;font-family:Gill, Helvetica, sans-serif; border-right: 1px solid #000; border-bottom: none; text-decoration: none; color: #fff; font-weight: bold; background-image: linear-gradient(bottom, rgb(68,68,68) 0%, rgb(34,34,34) 54%, rgb(68,68,68) 100%); background-image: -o-linear-gradient(bottom, rgb(68,68,68) 0%, rgb(34,34,34) 54%, rgb(68,68,68) 100%); background-image: -moz-linear-gradient(bottom, rgb(68,68,68) 0%, rgb(34,34,34) 54%, rgb(68,68,68) 100%); background-image: -webkit-linear-gradient(bottom, rgb(68,68,68) 0%, rgb(34,34,34) 54%, rgb(68,68,68) 100%); background-image: -ms-linear-gradient(bottom, rgb(68,68,68) 0%, rgb(34,34,34) 54%, rgb(68,68,68) 100%); background-image: -webkit-gradient( linear, left bottom, left top, color-stop(0, rgb(68,68,68)), color-stop(0.54, rgb(34,34,34)), color-stop(1, rgb(68,68,68)) ); } .menu li.active a { background-image: linear-gradient(bottom, rgb(138,25,25) 0%, rgb(186,52,52) 54%, rgb(138,25,25) 100%); background-image: -o-linear-gradient(bottom, rgb(138,25,25) 0%, rgb(186,52,52) 54%, rgb(138,25,25) 100%); background-image: -moz-linear-gradient(bottom, rgb(138,25,25) 0%, rgb(186,52,52) 54%, rgb(138,25,25) 100%); background-image: -webkit-linear-gradient(bottom, rgb(138,25,25) 0%, rgb(186,52,52) 54%, rgb(138,25,25) 100%); background-image: -ms-linear-gradient(bottom, rgb(138,25,25) 0%, rgb(186,52,52) 54%, rgb(138,25,25) 100%); background-image: -webkit-gradient( linear, left bottom, left top, color-stop(0, rgb(138,25,25)), color-stop(0.54, rgb(186,52,52)), color-stop(1, rgb(138,25,25)) ); } .content { float: left; clear: both; background: #fff; padding: 10px 20px 20px; width: 400px; } </code></pre> <p>Here's the fiddle: <a href="http://jsfiddle.net/avkKL/" rel="nofollow">http://jsfiddle.net/avkKL/</a></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.
 

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