2

I want to create a circle on an HTML page with text in it. Something similar to this: https://jsfiddle.net/f5vctpth/1/

I now used the img-round class from bootstrap to do it, but it is not dynamic...

<div class="img-circle">

Is there a way to dynamically wrap the text in the div?

I found this: (but havent yet found a way to make it work.)

http://webplatform.adobe.com/Demo-for-Alice-s-Adventures-in-Wonderland/

Ian van Wijk
  • 159
  • 2
  • 8

1 Answers1

1

try this fiddle https://jsfiddle.net/f5vctpth/2/

add this to your div overflow: hidden; it will work

           <div class="img-circle" style="
                width: 500px;
                height: 500px;
                background: #333;
                color: red;
                text-align: center;
            ">

in above style you missed overflow: hidden; add this to your style overflow: hidden;

replace with this code it will work

           <div class="img-circle" style="
                width: 500px;
                height: 500px;
                background: #333;
                color: red;
                text-align: center;
                overflow: hidden;
            ">
sanoj lawrence
  • 951
  • 5
  • 29
  • 69