Forums

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

Home Forums CSS CSS oval shape under image[help]

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #206572
    salll
    Participant

    Hello,
    Need help to do thing like this http://www.picz.ge/img/s3/1508/15/c/c0f23d178e56.png

    I write some styles but ….

    HTML
    <div class="container"><img src="http://i.dailymail.co.uk/i/pix/2015/08/14/11/2B5BEA4100000578-0-image-a-20_1439549358172.jpg" alt=""/>
    <div class="shape">
    <div class="left"></div>
    <div class="right"></div>
    </div>
    </div>

    CSS

    .container {
      width: 300px;
      height: 300px;
      overflow: hidden;
      position: relative;
    }
    
    .shape {
      width: 100%;
      height: 40px;
      position: absolute;
      bottom: 0;
      left: 0;
    }
    .shape .left {
      width: 50%;
      float: left;
      height: 100%;
      border-radius: 0 0 0 100%;
      background: #fff;
    }
    .shape .right {
      width: 50%;
      float: right;
      border-radius: 0 0 100% 0;
      background: #fff;
      height: 100%;
    }
    
    #206574
    Shikkediel
    Participant

    Open endings aren’t generally appreciated much but this is a friendly forum…

    codepen.io/anon/pen/YXbKPp

    #206575
    salll
    Participant

    Is anyone to help me?

    Whole day i’m trying to do this and cant, please help.

    ‘Shikkediel’ 10x

    #206576
    Shikkediel
    Participant

    How about something like this?

    codepen.io/anon/pen/aOroZO

    #206577
    salll
    Participant

    Love you so much <3

    #206578
    Shikkediel
    Participant

    The source of inspiration :

    https://css-tricks.com/examples/ShapesOfCSS/

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