Forums

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

Home Forums CSS CSS Shape cross browser support

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

    Hello,
    The shape in the attached codepen is what I want to achieve but with cross browser support. Im really confused when using syntax like this:

    ‘border-left: 50px solid transparent; border-right: 50px solid transparent;’

    http://codepen.io/aggressivedigital/pen/KprzPg

    #205658
    Paulie_D
    Member

    ‘border-left: 50px solid transparent; border-right: 50px solid transparent;’

    It’s referring to CSS triangles which have cross browser support but can be janky at large sizes.

    SVG is an option though.

    #205659
    NoobSimon
    Participant

    Thank you yet again Paulie_D. The end goal is to use that shape as a hero and to have an image inside it (dynamic) with text (dynamic) on top.

    So if I use an SVG Clip would that be the best with browser support? or is there any other way of achieving this?

    #205660
    NoobSimon
    Participant

    I have created this but i think think its going to work as the image will always be skewed
    http://codepen.io/aggressivedigital/pen/qdQZpg

    #205661
    Paulie_D
    Member

    Well clip-path is supported by all major browsers except…IE although FF (I think) only works using the SVG URL variant.

    http://caniuse.com/#feat=css-clip-path

    If you can take IE not having the clip (which is not an unreasonable fallback) then I’d say ‘yes, it’s the most suppoted option’

    #205662
    NoobSimon
    Participant

    Is there any tool you could recommend for creating SVG’s?

    #205663
    NoobSimon
    Participant

    I have created this but i think think its going to work as the image will always be skewed
    http://codepen.io/aggressivedigital/pen/qdQZpg

    #205664
    Paulie_D
    Member

    Is there any tool you could recommend for creating SVG’s?

    Sketch is supposed to be good. – http://bohemiancoding.com/sketch/

    It’s for Mac only AFAIK …I have Illustrator in the office (I’m on Windows) but I’m sure there are many others.

    #205665
    NoobSimon
    Participant

    I have Sketch but it didn’t produce what I wanted for the SVG output.

    I have manage to create this, how can I add an image background to cover it?
    http://codepen.io/aggressivedigital/pen/MwzeWB

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