Note that there are some explanatory texts on larger screens.

plurals
  1. POSetting border-bottom/top-right/left-radii
    primarykey
    data
    text
    <p>I'm editing a page in Chrome with "Inspect element" to make style edits before commiting to my CSS stylesheet.</p> <p>I'm editing a <code>:before</code> pseudo-element on a list to show a hashtag symbol with a green background, and had it looking like a leaf for a second, but upon saving the changes exactly as entered in the preview they're not being displayed on loading the page.</p> <p>Screenshot of what I saved:                                                               and what I got:<br /> <img src="https://i.stack.imgur.com/ZmTs2.png" alt="enter image description here">                                                  <img src="https://i.stack.imgur.com/ih0HF.png" alt="enter image description here"></p> <p>Basically the <code>border-top-left-radius</code> and <code>border-bottom-right-radius</code> were on zero by default, but setting</p> <pre><code>border-bottom-right-radius: 50px; border-top-left-radius: 50px; </code></pre> <p>allowed me to get that effect. I thought at first perhaps the browser had changed its values for <code>border-top-right</code> and <code>border-bottom-left</code> but declaring these as zero didn't change things. I understand that what you see with the inspect tool isn't always what's actually computed though.</p> <p>The relevant CSS is</p> <pre><code>content: " #"; opacity: 1; border-bottom-right-radius: 50px; border-top-left-radius: 50px; text-shadow: #175F0A 1px 1px 0px; margin-right: 11px; color: #fff; background: #81B681; font-weight: bold; text-align: center; border-radius: 28px; padding-left: 6px; padding-right: 7px; padding-top: 4px; padding-bottom: 5px; line-height: 2; border-bottom-left-radius: 0px; border-top-right-radius: 0px; </code></pre> <p><strong>Update</strong> This is odd - I've <a href="http://jsfiddle.net/6Y4nY/" rel="nofollow noreferrer">made a jsfiddle</a> and it's retaining my style... Guessing I've contradicted somewhere, looking now unless anyone can spot it?</p> <p><a href="http://jsfiddle.net/6Y4nY/3" rel="nofollow noreferrer">http://jsfiddle.net/6Y4nY/3</a></p> <p>Final, working version <a href="http://jsfiddle.net/6Y4nY/4" rel="nofollow noreferrer">http://jsfiddle.net/6Y4nY/4</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