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 9318605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T03:10:16+00:00 2026-06-19T03:10:16+00:00

I am trying to make a square picture circular using css 3. per request

  • 0

I am trying to make a square picture circular using css 3.

per request posting my entire code
html

<!DOCTYPE html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Hello</title>
    <link type="text/css" href="home_page.css" rel="stylesheet" />
  </head>
  <body>
<span class="image-wrap " style="display:inline-block; background:url(pic1.png);">
<img src="pic1.png" style="opacity: 0;"></span>
 </body>
</html>

css:inside home_page.css

.image-wrap {
    -webkit-border-radius: 50em;
    -moz-border-radius: 50em;
    border-radius: 50em;
}
  • 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-19T03:10:18+00:00Added an answer on June 19, 2026 at 3:10 am

    You need to set the <img> to display: block and set its border-radius, instead of or in addition to the parent element. Also you can use 50% for circular elements. And remove opacity: 0 from the image or it will be invisible. I’ve included a background-image: url() example as well, in case that is your issue.

    Demo: jsFiddle

    Output:

    enter image description here

    CSS:

    .circle {
        border: 1px solid black;
        border-radius: 50%;
        display: inline-block;
    }
    .circle img {
        border-radius: 50%;
        display: block;
    }
    .background-circle {
        background-image: url( 'http://lorempixel.com/200/200/cats/' );
        height: 200px;
        width: 200px;
    }
    

    HTML:

    <div class="circle"><img src="http://lorempixel.com/200/200/cats/" /></div>
    <div class="background-circle circle"></div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to make a virtual die (for playing dice) using CSS/HTML and
I'm using the following code in my HTML form - trying to make a
I'm trying to make a square plot (using imshow), i.e. aspect ratio of 1:1,
I am trying to make a custom view that is square, using the width
I am trying to get this code to make a square that will follow
I'm using Ruby Qt bindings. I'm trying to make a square widget (checker board),
Trying to make td elements clickable. Here's my HTML: <td id=A3 class= open-square><a href=/gameplay/A3></a></td>
Trying to make a cross protocol, same domain request from https to http. I
I'm trying to make a series of photos into square photos. They may be
Newbie question. I'm trying to make a mobile site using html5's geolocation (I know

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.