Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1331458
    Andreas Bjerve
    Participant

    Hi, I´m struggling to make a square image circular with HTML code. How do I proceed?

    Thanks!

    #1331554
    Rupok
    Member

    Hi there,

    Thanks for writing in! If you are using Image element in Cornerstone then there is the option to make it circled – http://prntscr.com/dw6ydu

    If you are using within HTML somehow then add a custom class (say my-image) and use CSS like this :

    .my-image{
      width: 300px;
      height: 300px;
      border-radius: 50%;
    }

    You can set your own height/width.

    Cheers!

    #1331653
    Andreas Bjerve
    Participant

    Thanks, that works in HTML, but I notice that the circle does not remain a circle when resizing the browser-window (it becomes oval). Any way to make the image a fixed circle?

    #1331666
    Christopher
    Moderator

    Hi there,

    Please update previous code to :

    .my-image{
      border-radius: 100%;
    }

    Hope it helps.

    #1331676
    Andreas Bjerve
    Participant

    Nice – thanks!

    #1331685
    Christian
    Moderator

    You’re welcome.

  • <script> jQuery(function($){ $("#no-reply-1331458 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>