How to show image in center of a div

 

#How to show image in center of a div:

Use this css to make the image center in a div. Its worked for me.  

#Show image in Center


.item img{    

    width: 100%;

    max-height: 350px;

    object-fit: contain;

    align-items: center;

}

Continue reading “How to show image in center of a div”

Please follow and like us:
0

On click Redirect to a new link in JQuery

#On click Redirect to a new link in JQuery:

HTML:
<a id="delete-button">Delete</a>

JQuery:

<script>
$("#delete-button").click(function(){
    if(confirm("Are you sure you want to delete this?")){
        $("#delete-button").attr("href", "query.php?ACTION=delete&ID='1'");

    }
    else{
        return false;
    }
});
</script>
Please follow and like us:
0