Whats the cleanest and simplest way of creating a circle in CSS and then centering a smaller image?
Here's what I have so far.
#circle { width: 200px; height: 200px; -webkit-border-radius: 200px; -moz-border-radius: 200px; border-radius: 200px; background-color: #333; } <div id="circle"></div>
Thanks,
:)
I think Chris did something like this in codepen.
border-radius: 50%;
This should about cover it. (expanding upon HugoGiraudel's exhaustive post) <3
http://codepen.io/anon/pen/pEeij
I took the time to use <code> and <pre> tags. :P
<code>
<pre>
Whats the cleanest and simplest way of creating a circle in CSS and then centering a smaller image?
Here's what I have so far.
Thanks,
:)
I think Chris did something like this in codepen.
This should about cover it. (expanding upon HugoGiraudel's exhaustive post) <3
http://codepen.io/anon/pen/pEeij
I took the time to use
<code>and<pre>tags. :P