1

hi all developers and webdesigners , i want to create a one side circular effect with twitter bootstrap , something like this picture . there is a circular curve on the left side and rectangular straight line on the right side , but the rectangular has an effect on it's left side which you can see in the picture , how can i create something like this ? Thanks.

BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356

3 Answers3

0

Try this for circular image.

HTML:

<div class="circular"></div>

CSS:

.circular {
  width: 300px;
  height: 300px;
  border-radius: 150px;
  -webkit-border-radius: 150px;
  -moz-border-radius: 150px;
  background: url(http://link-to-your/image.jpg) no-repeat;
}

Or

HTML:

<div class="circular"><img src="http://link-to-your/image.jpg" alt="" /></div>

CSS:

.circular {
    width: 300px;
    height: 300px;
    border-radius: 150px;
    -webkit-border-radius: 150px;
    -moz-border-radius: 150px;
    background: url(http://link-to-your/image.jpg) no-repeat;
}

.circular img {
    opacity: 0;
    filter: alpha(opacity=0);
}

Demo

Anshad Vattapoyil
  • 23,145
  • 18
  • 84
  • 132
0

Like this

demo

css

.circle {
  width: 300px;
  height: 300px;
  border-radius: 150px;
  -webkit-border-radius: 150px;
  -moz-border-radius: 150px;
  background-color:blue;
}

like this more links

Falguni Panchal
  • 8,873
  • 3
  • 27
  • 33
0

Take a look at this demo

CSS

body {
    background-color: #555;
}
#outer {
    margin: 100px auto;
    background-color: black;
    border-radius: 10px;
    width: 600px;
    height: 200px;
    text-align: center;
    color: white;
    font-size: 25px;
    line-height: 200px;
}

#inner {
    width: 200px; height: 200px;
    position: relative;
    background: url(http://i.imgur.com/fqct5Us.gif) center;
    border-radius: 1000px;
    overflow: hidden;
    border: 10px solid black;
    float: left;
    -webkit-transform: scale(1.4);
       -moz-transform: scale(1.4);
        -ms-transform: scale(1.4);
         -o-transform: scale(1.4);
            transform: scale(1.4);
}

#inner:before {
    content: '';
    position: absolute;
    height: 200px; width: 50px;
    left: 30px; bottom: -110px;
    display: inline-block;
    background-color: black;
    -webkit-transform: rotate(-45deg);
       -moz-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
         -o-transform: rotate(-45deg);
            transform: rotate(-45deg);
}

HTML

<div id="outer">
        I am lorem. &larr; Huh?
    <div id="inner">
    </div>
</div>
Community
  • 1
  • 1
Sourabh
  • 8,243
  • 10
  • 52
  • 98