Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS CREATING A CSS CIRCLE.

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #39970
    BibCra
    Participant

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

    Thanks,

    :)

    #110589
    John
    Participant

    I think Chris did something like this in codepen.

    #110590
    Kitty Giraudel
    Participant
    border-radius: 50%;
    #110695
    HoughtonA
    Participant

    This should about cover it. (expanding upon HugoGiraudel’s exhaustive post) <3

    http://codepen.io/anon/pen/pEeij

    #110703
    Kitty Giraudel
    Participant

    I took the time to use <code> and <pre> tags. :P

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.