Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9207719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:26:58+00:00 2026-06-18T00:26:58+00:00

is it possible to draw a final border around these 2 shapes without having

  • 0

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/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T00:26:59+00:00Added an answer on June 18, 2026 at 12:26 am

    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 .img 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):

    Changed/Added CSS

    .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;
    }
    

    To get Text to Overlap the Image

    Change some properties:

    .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 */
    }
    

    Then add the following to push the text above the img:

    .site-header1 .logo .text span {
        position: relative;
        z-index: 1;
    }
    

    See the result in this fiddle.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to draw border around a menu item in vb6?
Is it possible to include a draw component (circle or rectangle) inside a grid
Is it possible to draw a frame around an expression? For example if I
Is it possible to draw multiple NSImages in a single NSView ? So far
Is it possible to draw on a JFrame without adding a JPanel to it?
Is it possible to draw circle using css only which can work on most
Is it possible to draw shapes in a flash animation at runtime through PHP?
Possible Duplicate: Draw Circle using css alone I would like to know if there
Is it possible do draw hollow circle in Google Maps v3? More information: I
Is possible to draw a Shape that has a background made by slanted lines?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.