Terence Eden. He has a beard and is smiling.
Theme Switcher:

How to centre an icon inside a square and a circle?

· 2 comments · 200 words · Viewed ~363 times


A little mathematical / spatial / design problem I've been having.

I have an icon which, depending on the user's preference, can be inside a square or a circle. Is it possible for it to be centred in both?

Here's a visual example. On the left is the AirBnB logo centred in a square. When the background is turned into a circle, the logo appears to "drop" - the bottom of the logo is closer to the edge than the top of the logo.

airbnb logo centred on the square-fs8

So, let's change that and make the logo's extremities equidistant from the circumference of the circle:

airbnb logo centred on the circle-fs8

Now, in the square version, it appears to be floating near the top.

Part of the problem is that I don't know what terms I need to search for. I am lacking in design vocabulary.

Is this a problem which can be solved? Can you help square this circle? Please let me know!


Share this post on…

2 thoughts on “How to centre an icon inside a square and a circle?”

  1. To achieve the visual effect that the icon is equidistant from all sides of the shape you could draw the smallest shape that can contain the icon then center that shape within the target shape. (shape = square or circle)

    Reply

What are your reckons?

All comments are moderated and may not be published immediately. Your email address will not be published.

See allowed HTML elements: <a href="" title="">
<abbr title="">
<acronym title="">
<b>
<blockquote cite="">
<br>
<cite>
<code>
<del datetime="">
<em>
<i>
<img src="" alt="" title="" srcset="">
<p>
<pre>
<q cite="">
<s>
<strike>
<strong>

To respond on your own website, write a post which contains a link to this post - then enter the URl of your page here. Learn more about WebMentions.