is it possible to draw a final border around these 2 shapes without having the border of the circle on the left and the right?
heres what i have so far
<div class="site-header1">
<div class="logo">
<div class="text">
<span>Class</span>
<span>Class</span>
</div>
<div class="img"></div>
</div>
</div>
css
.site-header1 .logo{
position:relative;
height: 80px;
}
.site-header1 .logo .text{
padding: 10px;
font-weight: lighter;
font-family: 'Lato', sans-serif;
font-size:1.5em;
border-radius: 25px;
background:white;
border:1px solid rgba(0, 0, 0, 0.5);
position:absolute;
top: 17px;
}
.site-header1 .logo .text span+span{
padding-left:75px;
}
.site-header1 .logo .img{
border-radius: 100px;
background:white;
border:1px solid rgba(0, 0, 0, 0.5);
position:absolute;
left: 75px;
top: 7px;
height: 70px;
width: 70px;
}
i have a fiddle started here http://jsfiddle.net/TH5E5/
While I believe you could use background gradients to possibly get the effect (something similar to what is done for this answer), an easier route is to…
Use a Pseudo-Element for the Border
This fiddle seems to be what you want, 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
.imgitself 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):Changed/Added CSS
To get Text to Overlap the Image
Change some properties:
Then add the following to push the text above the img:
See the result in this fiddle.