Forums

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

Home Forums CSS Crop Images Like This?

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #41178
    realph
    Participant

    Does anyone know if it’s possible to crop images like this in CSS without using an application like photoshop every single time?

    Almost like a mask, where I can drop my images in and it sections off part of the image like a tooltip.

    #116417
    Paulie_D
    Member

    Is this going to be a background image or just sitting inside a div?

    It depends on what you are trying to achieve and why?

    Frankly the answer is, I think, not with pure CSS although I think Webkit supports (supported?) image masks

    https://css-tricks.com/webkit-image-wipes/

    #116419
    realph
    Participant

    I need it to be an image, possibly inside a div. Not keen on image masks, wondered if there was another way around this.

    #116423
    instantMash
    Member

    Will the background (the black area, in your image) always be a solid color?

    #116458
    realph
    Participant

    @instantMash Not really. Using multiple background images behind that image.

    #116459
    Paulie_D
    Member

    Then I think you’re SOL

    #116552
    realph
    Participant

    So in regards to webkit masks, is there a way to create webkit masks purely of CSS, no images? As that shape’s pretty basic.

    #116553
    Paulie_D
    Member

    Nope…not AFAIK

    #116704
    Kitty Giraudel
    Participant

    No. The best way would probably be a PNG.

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