White CSS arrow inside div










-2















I'm looking to create this white arrow that goes inside the image with the HTML you can find in the snippet in a pure CSS way, not editing any HTML code.



Result desired






.foto 
width: 100%;
float: left;
min-height: 215px;
background:
linear-gradient(to bottom right,transparent 50%,#fff 0) bottom right/10% 50% no-repeat, linear-gradient(to bottom left,#fff 50%,transparent 0%) top right/10% 50% no-repeat, url(https://s3.pagegear.co/1/contents/blog/2016/imagen_cachorro_comprimir.jpg) center/cover

<div class="foto bg_fix"><img src="https://s3.pagegear.co/1/contents/blog/2016/imagen_cachorro_comprimir.jpg" itemprop="image" width="724" height="230" style="display: none;"></div>












share|improve this question



















  • 4





    research about svg clip-path.

    – Le____
    Nov 14 '18 at 1:22






  • 1





    What approaches have you tried so far? I can give you the code to copy/paste but I'm not helping you that way. Hint: you can use clip-path (but it's not that well supported in all browsers). If you get stuck, let me know.

    – Nemanja Glumac
    Nov 14 '18 at 1:23











  • I was trying with linear-gradient, but I was able to doing it but with the white triangle pointing to the rigth. Also with borders and transform skew property but I got stuck. Svg clip-path just worked perfectly. Any other solutionbetter supported is more than welcome

    – Hector Landete
    Nov 14 '18 at 1:37











  • post the code where the triangle is pointing to the right

    – MartinBA
    Nov 14 '18 at 2:06











  • @MartinBA background: linear-gradient(to bottom right,transparent 50%,#fff 0) bottom right/10% 50% no-repeat, linear-gradient(to bottom left,#fff 50%,transparent 0%) top right/10% 50% no-repeat, url(s3.pagegear.co/1/contents/blog/2016/…) center/cover

    – Hector Landete
    Nov 14 '18 at 2:26
















-2















I'm looking to create this white arrow that goes inside the image with the HTML you can find in the snippet in a pure CSS way, not editing any HTML code.



Result desired






.foto 
width: 100%;
float: left;
min-height: 215px;
background:
linear-gradient(to bottom right,transparent 50%,#fff 0) bottom right/10% 50% no-repeat, linear-gradient(to bottom left,#fff 50%,transparent 0%) top right/10% 50% no-repeat, url(https://s3.pagegear.co/1/contents/blog/2016/imagen_cachorro_comprimir.jpg) center/cover

<div class="foto bg_fix"><img src="https://s3.pagegear.co/1/contents/blog/2016/imagen_cachorro_comprimir.jpg" itemprop="image" width="724" height="230" style="display: none;"></div>












share|improve this question



















  • 4





    research about svg clip-path.

    – Le____
    Nov 14 '18 at 1:22






  • 1





    What approaches have you tried so far? I can give you the code to copy/paste but I'm not helping you that way. Hint: you can use clip-path (but it's not that well supported in all browsers). If you get stuck, let me know.

    – Nemanja Glumac
    Nov 14 '18 at 1:23











  • I was trying with linear-gradient, but I was able to doing it but with the white triangle pointing to the rigth. Also with borders and transform skew property but I got stuck. Svg clip-path just worked perfectly. Any other solutionbetter supported is more than welcome

    – Hector Landete
    Nov 14 '18 at 1:37











  • post the code where the triangle is pointing to the right

    – MartinBA
    Nov 14 '18 at 2:06











  • @MartinBA background: linear-gradient(to bottom right,transparent 50%,#fff 0) bottom right/10% 50% no-repeat, linear-gradient(to bottom left,#fff 50%,transparent 0%) top right/10% 50% no-repeat, url(s3.pagegear.co/1/contents/blog/2016/…) center/cover

    – Hector Landete
    Nov 14 '18 at 2:26














-2












-2








-2








I'm looking to create this white arrow that goes inside the image with the HTML you can find in the snippet in a pure CSS way, not editing any HTML code.



Result desired






.foto 
width: 100%;
float: left;
min-height: 215px;
background:
linear-gradient(to bottom right,transparent 50%,#fff 0) bottom right/10% 50% no-repeat, linear-gradient(to bottom left,#fff 50%,transparent 0%) top right/10% 50% no-repeat, url(https://s3.pagegear.co/1/contents/blog/2016/imagen_cachorro_comprimir.jpg) center/cover

<div class="foto bg_fix"><img src="https://s3.pagegear.co/1/contents/blog/2016/imagen_cachorro_comprimir.jpg" itemprop="image" width="724" height="230" style="display: none;"></div>












share|improve this question
















I'm looking to create this white arrow that goes inside the image with the HTML you can find in the snippet in a pure CSS way, not editing any HTML code.



Result desired






.foto 
width: 100%;
float: left;
min-height: 215px;
background:
linear-gradient(to bottom right,transparent 50%,#fff 0) bottom right/10% 50% no-repeat, linear-gradient(to bottom left,#fff 50%,transparent 0%) top right/10% 50% no-repeat, url(https://s3.pagegear.co/1/contents/blog/2016/imagen_cachorro_comprimir.jpg) center/cover

<div class="foto bg_fix"><img src="https://s3.pagegear.co/1/contents/blog/2016/imagen_cachorro_comprimir.jpg" itemprop="image" width="724" height="230" style="display: none;"></div>








.foto 
width: 100%;
float: left;
min-height: 215px;
background:
linear-gradient(to bottom right,transparent 50%,#fff 0) bottom right/10% 50% no-repeat, linear-gradient(to bottom left,#fff 50%,transparent 0%) top right/10% 50% no-repeat, url(https://s3.pagegear.co/1/contents/blog/2016/imagen_cachorro_comprimir.jpg) center/cover

<div class="foto bg_fix"><img src="https://s3.pagegear.co/1/contents/blog/2016/imagen_cachorro_comprimir.jpg" itemprop="image" width="724" height="230" style="display: none;"></div>





.foto 
width: 100%;
float: left;
min-height: 215px;
background:
linear-gradient(to bottom right,transparent 50%,#fff 0) bottom right/10% 50% no-repeat, linear-gradient(to bottom left,#fff 50%,transparent 0%) top right/10% 50% no-repeat, url(https://s3.pagegear.co/1/contents/blog/2016/imagen_cachorro_comprimir.jpg) center/cover

<div class="foto bg_fix"><img src="https://s3.pagegear.co/1/contents/blog/2016/imagen_cachorro_comprimir.jpg" itemprop="image" width="724" height="230" style="display: none;"></div>






css css3 linear-gradients






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 14 '18 at 10:51









Temani Afif

75.6k94386




75.6k94386










asked Nov 14 '18 at 1:15









Hector LandeteHector Landete

838




838







  • 4





    research about svg clip-path.

    – Le____
    Nov 14 '18 at 1:22






  • 1





    What approaches have you tried so far? I can give you the code to copy/paste but I'm not helping you that way. Hint: you can use clip-path (but it's not that well supported in all browsers). If you get stuck, let me know.

    – Nemanja Glumac
    Nov 14 '18 at 1:23











  • I was trying with linear-gradient, but I was able to doing it but with the white triangle pointing to the rigth. Also with borders and transform skew property but I got stuck. Svg clip-path just worked perfectly. Any other solutionbetter supported is more than welcome

    – Hector Landete
    Nov 14 '18 at 1:37











  • post the code where the triangle is pointing to the right

    – MartinBA
    Nov 14 '18 at 2:06











  • @MartinBA background: linear-gradient(to bottom right,transparent 50%,#fff 0) bottom right/10% 50% no-repeat, linear-gradient(to bottom left,#fff 50%,transparent 0%) top right/10% 50% no-repeat, url(s3.pagegear.co/1/contents/blog/2016/…) center/cover

    – Hector Landete
    Nov 14 '18 at 2:26













  • 4





    research about svg clip-path.

    – Le____
    Nov 14 '18 at 1:22






  • 1





    What approaches have you tried so far? I can give you the code to copy/paste but I'm not helping you that way. Hint: you can use clip-path (but it's not that well supported in all browsers). If you get stuck, let me know.

    – Nemanja Glumac
    Nov 14 '18 at 1:23











  • I was trying with linear-gradient, but I was able to doing it but with the white triangle pointing to the rigth. Also with borders and transform skew property but I got stuck. Svg clip-path just worked perfectly. Any other solutionbetter supported is more than welcome

    – Hector Landete
    Nov 14 '18 at 1:37











  • post the code where the triangle is pointing to the right

    – MartinBA
    Nov 14 '18 at 2:06











  • @MartinBA background: linear-gradient(to bottom right,transparent 50%,#fff 0) bottom right/10% 50% no-repeat, linear-gradient(to bottom left,#fff 50%,transparent 0%) top right/10% 50% no-repeat, url(s3.pagegear.co/1/contents/blog/2016/…) center/cover

    – Hector Landete
    Nov 14 '18 at 2:26








4




4





research about svg clip-path.

– Le____
Nov 14 '18 at 1:22





research about svg clip-path.

– Le____
Nov 14 '18 at 1:22




1




1





What approaches have you tried so far? I can give you the code to copy/paste but I'm not helping you that way. Hint: you can use clip-path (but it's not that well supported in all browsers). If you get stuck, let me know.

– Nemanja Glumac
Nov 14 '18 at 1:23





What approaches have you tried so far? I can give you the code to copy/paste but I'm not helping you that way. Hint: you can use clip-path (but it's not that well supported in all browsers). If you get stuck, let me know.

– Nemanja Glumac
Nov 14 '18 at 1:23













I was trying with linear-gradient, but I was able to doing it but with the white triangle pointing to the rigth. Also with borders and transform skew property but I got stuck. Svg clip-path just worked perfectly. Any other solutionbetter supported is more than welcome

– Hector Landete
Nov 14 '18 at 1:37





I was trying with linear-gradient, but I was able to doing it but with the white triangle pointing to the rigth. Also with borders and transform skew property but I got stuck. Svg clip-path just worked perfectly. Any other solutionbetter supported is more than welcome

– Hector Landete
Nov 14 '18 at 1:37













post the code where the triangle is pointing to the right

– MartinBA
Nov 14 '18 at 2:06





post the code where the triangle is pointing to the right

– MartinBA
Nov 14 '18 at 2:06













@MartinBA background: linear-gradient(to bottom right,transparent 50%,#fff 0) bottom right/10% 50% no-repeat, linear-gradient(to bottom left,#fff 50%,transparent 0%) top right/10% 50% no-repeat, url(s3.pagegear.co/1/contents/blog/2016/…) center/cover

– Hector Landete
Nov 14 '18 at 2:26






@MartinBA background: linear-gradient(to bottom right,transparent 50%,#fff 0) bottom right/10% 50% no-repeat, linear-gradient(to bottom left,#fff 50%,transparent 0%) top right/10% 50% no-repeat, url(s3.pagegear.co/1/contents/blog/2016/…) center/cover

– Hector Landete
Nov 14 '18 at 2:26













2 Answers
2






active

oldest

votes


















0














If you do not need to support Edge, you can get away with the clip-path. It's by far the easiest solution to your problem.
You can check the support on CanIUse



Also, amazingly helpful tool for this is Clippy, but don't forget to read about this technique on MDN - CSS clip-path.



.foto 
width: 100%;
float: left;
min-height: 215px;

-webkit-clip-path: polygon(100% 0%, 85% 50%, 100% 100%, 0 100%, 0% 50%, 0 0);
clip-path: polygon(100% 0%, 85% 50%, 100% 100%, 0 100%, 0% 50%, 0 0);

/* first value is X, and second value is Y coordinate. Feel free to experiment with percentages according to your needs. */


SOLUTION 2:
Old "trick" which has much much better support => CSS shapes.

You would basically need to create a new element (which is going to be your white triangle) and then put it on top of that image. Here's a sample code for a triangle that you need:






#triangle-left 
width: 0;
height: 0;
border-top: 50px solid transparent;
border-right: 100px solid red; /* red is just for display puproses */
border-bottom: 50px solid transparent;

<div id="triangle-left"><div>





Btw, you have both background-image and img tag in your html. Decide which one you want to use, and if you have problem with cropping the image, you may want to look into background position and/or object-fit.






share|improve this answer






























    0














    You can correct you gradient like below. You were almost good, simply switch the position of both making the bottom one on the top and the top on on the bottom:






    .foto 
    min-height: 200px;
    background:
    linear-gradient(to bottom right,transparent 49.8%,#fff 50%) top right/10% 50%,
    linear-gradient(to top right,transparent 49.8%,#fff 50%) bottom right/10% 50%,
    url("https://s3.pagegear.co/1/contents/blog/2016/imagen_cachorro_comprimir.jpg") center/cover;
    background-repeat:no-repeat;

    <div class="foto bg_fix" ></div>








    share|improve this answer

























    • Yes I achieved that also, but the solution is not responsive

      – Hector Landete
      Nov 18 '18 at 23:50











    • @HectorLandete how it's not responsive? it's perfectly responsive since it uses % values ;)

      – Temani Afif
      Nov 18 '18 at 23:51











    • @HectorLandete it has the same responsiveness as the solution you accepted (the clip path and not the border trick because this one is not responsive)

      – Temani Afif
      Nov 18 '18 at 23:52











    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53291802%2fwhite-css-arrow-inside-div%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    If you do not need to support Edge, you can get away with the clip-path. It's by far the easiest solution to your problem.
    You can check the support on CanIUse



    Also, amazingly helpful tool for this is Clippy, but don't forget to read about this technique on MDN - CSS clip-path.



    .foto 
    width: 100%;
    float: left;
    min-height: 215px;

    -webkit-clip-path: polygon(100% 0%, 85% 50%, 100% 100%, 0 100%, 0% 50%, 0 0);
    clip-path: polygon(100% 0%, 85% 50%, 100% 100%, 0 100%, 0% 50%, 0 0);

    /* first value is X, and second value is Y coordinate. Feel free to experiment with percentages according to your needs. */


    SOLUTION 2:
    Old "trick" which has much much better support => CSS shapes.

    You would basically need to create a new element (which is going to be your white triangle) and then put it on top of that image. Here's a sample code for a triangle that you need:






    #triangle-left 
    width: 0;
    height: 0;
    border-top: 50px solid transparent;
    border-right: 100px solid red; /* red is just for display puproses */
    border-bottom: 50px solid transparent;

    <div id="triangle-left"><div>





    Btw, you have both background-image and img tag in your html. Decide which one you want to use, and if you have problem with cropping the image, you may want to look into background position and/or object-fit.






    share|improve this answer



























      0














      If you do not need to support Edge, you can get away with the clip-path. It's by far the easiest solution to your problem.
      You can check the support on CanIUse



      Also, amazingly helpful tool for this is Clippy, but don't forget to read about this technique on MDN - CSS clip-path.



      .foto 
      width: 100%;
      float: left;
      min-height: 215px;

      -webkit-clip-path: polygon(100% 0%, 85% 50%, 100% 100%, 0 100%, 0% 50%, 0 0);
      clip-path: polygon(100% 0%, 85% 50%, 100% 100%, 0 100%, 0% 50%, 0 0);

      /* first value is X, and second value is Y coordinate. Feel free to experiment with percentages according to your needs. */


      SOLUTION 2:
      Old "trick" which has much much better support => CSS shapes.

      You would basically need to create a new element (which is going to be your white triangle) and then put it on top of that image. Here's a sample code for a triangle that you need:






      #triangle-left 
      width: 0;
      height: 0;
      border-top: 50px solid transparent;
      border-right: 100px solid red; /* red is just for display puproses */
      border-bottom: 50px solid transparent;

      <div id="triangle-left"><div>





      Btw, you have both background-image and img tag in your html. Decide which one you want to use, and if you have problem with cropping the image, you may want to look into background position and/or object-fit.






      share|improve this answer

























        0












        0








        0







        If you do not need to support Edge, you can get away with the clip-path. It's by far the easiest solution to your problem.
        You can check the support on CanIUse



        Also, amazingly helpful tool for this is Clippy, but don't forget to read about this technique on MDN - CSS clip-path.



        .foto 
        width: 100%;
        float: left;
        min-height: 215px;

        -webkit-clip-path: polygon(100% 0%, 85% 50%, 100% 100%, 0 100%, 0% 50%, 0 0);
        clip-path: polygon(100% 0%, 85% 50%, 100% 100%, 0 100%, 0% 50%, 0 0);

        /* first value is X, and second value is Y coordinate. Feel free to experiment with percentages according to your needs. */


        SOLUTION 2:
        Old "trick" which has much much better support => CSS shapes.

        You would basically need to create a new element (which is going to be your white triangle) and then put it on top of that image. Here's a sample code for a triangle that you need:






        #triangle-left 
        width: 0;
        height: 0;
        border-top: 50px solid transparent;
        border-right: 100px solid red; /* red is just for display puproses */
        border-bottom: 50px solid transparent;

        <div id="triangle-left"><div>





        Btw, you have both background-image and img tag in your html. Decide which one you want to use, and if you have problem with cropping the image, you may want to look into background position and/or object-fit.






        share|improve this answer













        If you do not need to support Edge, you can get away with the clip-path. It's by far the easiest solution to your problem.
        You can check the support on CanIUse



        Also, amazingly helpful tool for this is Clippy, but don't forget to read about this technique on MDN - CSS clip-path.



        .foto 
        width: 100%;
        float: left;
        min-height: 215px;

        -webkit-clip-path: polygon(100% 0%, 85% 50%, 100% 100%, 0 100%, 0% 50%, 0 0);
        clip-path: polygon(100% 0%, 85% 50%, 100% 100%, 0 100%, 0% 50%, 0 0);

        /* first value is X, and second value is Y coordinate. Feel free to experiment with percentages according to your needs. */


        SOLUTION 2:
        Old "trick" which has much much better support => CSS shapes.

        You would basically need to create a new element (which is going to be your white triangle) and then put it on top of that image. Here's a sample code for a triangle that you need:






        #triangle-left 
        width: 0;
        height: 0;
        border-top: 50px solid transparent;
        border-right: 100px solid red; /* red is just for display puproses */
        border-bottom: 50px solid transparent;

        <div id="triangle-left"><div>





        Btw, you have both background-image and img tag in your html. Decide which one you want to use, and if you have problem with cropping the image, you may want to look into background position and/or object-fit.






        #triangle-left 
        width: 0;
        height: 0;
        border-top: 50px solid transparent;
        border-right: 100px solid red; /* red is just for display puproses */
        border-bottom: 50px solid transparent;

        <div id="triangle-left"><div>





        #triangle-left 
        width: 0;
        height: 0;
        border-top: 50px solid transparent;
        border-right: 100px solid red; /* red is just for display puproses */
        border-bottom: 50px solid transparent;

        <div id="triangle-left"><div>






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 14 '18 at 3:37









        Nemanja GlumacNemanja Glumac

        519213




        519213























            0














            You can correct you gradient like below. You were almost good, simply switch the position of both making the bottom one on the top and the top on on the bottom:






            .foto 
            min-height: 200px;
            background:
            linear-gradient(to bottom right,transparent 49.8%,#fff 50%) top right/10% 50%,
            linear-gradient(to top right,transparent 49.8%,#fff 50%) bottom right/10% 50%,
            url("https://s3.pagegear.co/1/contents/blog/2016/imagen_cachorro_comprimir.jpg") center/cover;
            background-repeat:no-repeat;

            <div class="foto bg_fix" ></div>








            share|improve this answer

























            • Yes I achieved that also, but the solution is not responsive

              – Hector Landete
              Nov 18 '18 at 23:50











            • @HectorLandete how it's not responsive? it's perfectly responsive since it uses % values ;)

              – Temani Afif
              Nov 18 '18 at 23:51











            • @HectorLandete it has the same responsiveness as the solution you accepted (the clip path and not the border trick because this one is not responsive)

              – Temani Afif
              Nov 18 '18 at 23:52
















            0














            You can correct you gradient like below. You were almost good, simply switch the position of both making the bottom one on the top and the top on on the bottom:






            .foto 
            min-height: 200px;
            background:
            linear-gradient(to bottom right,transparent 49.8%,#fff 50%) top right/10% 50%,
            linear-gradient(to top right,transparent 49.8%,#fff 50%) bottom right/10% 50%,
            url("https://s3.pagegear.co/1/contents/blog/2016/imagen_cachorro_comprimir.jpg") center/cover;
            background-repeat:no-repeat;

            <div class="foto bg_fix" ></div>








            share|improve this answer

























            • Yes I achieved that also, but the solution is not responsive

              – Hector Landete
              Nov 18 '18 at 23:50











            • @HectorLandete how it's not responsive? it's perfectly responsive since it uses % values ;)

              – Temani Afif
              Nov 18 '18 at 23:51











            • @HectorLandete it has the same responsiveness as the solution you accepted (the clip path and not the border trick because this one is not responsive)

              – Temani Afif
              Nov 18 '18 at 23:52














            0












            0








            0







            You can correct you gradient like below. You were almost good, simply switch the position of both making the bottom one on the top and the top on on the bottom:






            .foto 
            min-height: 200px;
            background:
            linear-gradient(to bottom right,transparent 49.8%,#fff 50%) top right/10% 50%,
            linear-gradient(to top right,transparent 49.8%,#fff 50%) bottom right/10% 50%,
            url("https://s3.pagegear.co/1/contents/blog/2016/imagen_cachorro_comprimir.jpg") center/cover;
            background-repeat:no-repeat;

            <div class="foto bg_fix" ></div>








            share|improve this answer















            You can correct you gradient like below. You were almost good, simply switch the position of both making the bottom one on the top and the top on on the bottom:






            .foto 
            min-height: 200px;
            background:
            linear-gradient(to bottom right,transparent 49.8%,#fff 50%) top right/10% 50%,
            linear-gradient(to top right,transparent 49.8%,#fff 50%) bottom right/10% 50%,
            url("https://s3.pagegear.co/1/contents/blog/2016/imagen_cachorro_comprimir.jpg") center/cover;
            background-repeat:no-repeat;

            <div class="foto bg_fix" ></div>








            .foto 
            min-height: 200px;
            background:
            linear-gradient(to bottom right,transparent 49.8%,#fff 50%) top right/10% 50%,
            linear-gradient(to top right,transparent 49.8%,#fff 50%) bottom right/10% 50%,
            url("https://s3.pagegear.co/1/contents/blog/2016/imagen_cachorro_comprimir.jpg") center/cover;
            background-repeat:no-repeat;

            <div class="foto bg_fix" ></div>





            .foto 
            min-height: 200px;
            background:
            linear-gradient(to bottom right,transparent 49.8%,#fff 50%) top right/10% 50%,
            linear-gradient(to top right,transparent 49.8%,#fff 50%) bottom right/10% 50%,
            url("https://s3.pagegear.co/1/contents/blog/2016/imagen_cachorro_comprimir.jpg") center/cover;
            background-repeat:no-repeat;

            <div class="foto bg_fix" ></div>






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Nov 18 '18 at 23:53

























            answered Nov 14 '18 at 10:47









            Temani AfifTemani Afif

            75.6k94386




            75.6k94386












            • Yes I achieved that also, but the solution is not responsive

              – Hector Landete
              Nov 18 '18 at 23:50











            • @HectorLandete how it's not responsive? it's perfectly responsive since it uses % values ;)

              – Temani Afif
              Nov 18 '18 at 23:51











            • @HectorLandete it has the same responsiveness as the solution you accepted (the clip path and not the border trick because this one is not responsive)

              – Temani Afif
              Nov 18 '18 at 23:52


















            • Yes I achieved that also, but the solution is not responsive

              – Hector Landete
              Nov 18 '18 at 23:50











            • @HectorLandete how it's not responsive? it's perfectly responsive since it uses % values ;)

              – Temani Afif
              Nov 18 '18 at 23:51











            • @HectorLandete it has the same responsiveness as the solution you accepted (the clip path and not the border trick because this one is not responsive)

              – Temani Afif
              Nov 18 '18 at 23:52

















            Yes I achieved that also, but the solution is not responsive

            – Hector Landete
            Nov 18 '18 at 23:50





            Yes I achieved that also, but the solution is not responsive

            – Hector Landete
            Nov 18 '18 at 23:50













            @HectorLandete how it's not responsive? it's perfectly responsive since it uses % values ;)

            – Temani Afif
            Nov 18 '18 at 23:51





            @HectorLandete how it's not responsive? it's perfectly responsive since it uses % values ;)

            – Temani Afif
            Nov 18 '18 at 23:51













            @HectorLandete it has the same responsiveness as the solution you accepted (the clip path and not the border trick because this one is not responsive)

            – Temani Afif
            Nov 18 '18 at 23:52






            @HectorLandete it has the same responsiveness as the solution you accepted (the clip path and not the border trick because this one is not responsive)

            – Temani Afif
            Nov 18 '18 at 23:52


















            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53291802%2fwhite-css-arrow-inside-div%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Darth Vader #20

            How to how show current date and time by default on contact form 7 in WordPress without taking input from user in datetimepicker

            Ondo