Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>While I believe you could use background gradients to possibly get the effect (<a href="https://stackoverflow.com/questions/10501488/css-3-shape-inverse-circle-or-cut-out-circle/10503105#10503105">something similar to what is done for this answer</a>), an easier route is to...</p> <h2>Use a Pseudo-Element for the Border</h2> <p><a href="http://jsfiddle.net/TH5E5/15/" rel="nofollow noreferrer">This fiddle seems to be what you want</a>, and looked good to me in Chrome, Firefox, and IE9. It puts the border on a pseudo-element to push the circle with border behind the main shape, then uses the <code>.img</code> itself to overlay the borders of that shape. Here is the changed portion of your css code (your html is the same as you had it, and so is most of your original css):</p> <p><strong>Changed/Added CSS</strong></p> <pre><code>.site-header1 .logo .img { /*this is the image itself */ border-radius: 99px; /* 1px less than the border */ background:white; border:0; position:absolute; left: 76px; /* 1px more than border below */ top: 8px; /* 1px more than border below */ height: 70px; width: 70px; } .site-header1 .logo:after { /*this is the image border */ content: ''; border-radius: 100px; background:white; border:1px solid rgba(0, 0, 0, 0.5); position:absolute; z-index: -1; /* push it behind */ left: 75px; top: 7px; height: 70px; width: 70px; } </code></pre> <h2>To get Text to Overlap the Image</h2> <p>Change some properties:</p> <pre><code>.site-header1 .logo .text { /* position: absolute; needs to be removed */ display: inline-block; margin-top: 17px; /* this replaces the top: 17px when it was absolute */ } </code></pre> <p>Then add the following to push the text above the img:</p> <pre><code>.site-header1 .logo .text span { position: relative; z-index: 1; } </code></pre> <p><a href="http://jsfiddle.net/TH5E5/18/" rel="nofollow noreferrer">See the result in this fiddle.</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