Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82360

Overlay image in a cell

$
0
0

Hi Guys,
I am pulling an Image for the first cell and some text for the second cell from a database.
I have a responsive layout using the following:

'''
columns: [

        { data: "blogTitle" , title : "Title" , width : '20%',
        render : function ( data, type, row) {
        return '<img style="vertical-align:middle horizontal-align:middle" width="100%"  src="'+data+'"/>';

        }
        },
        {data: "notes", 
        title : "Details",
        width : '80%',
        render: function ( data, type, row ) {
        return  "<div class='setRowHeight' "  + data + " </div>";
        }
        },


                  ]

'''

This all works fine.
I now need to overlay a 'play' button over the image that will scale with the image.

Cheers

Steve Warby


Viewing all articles
Browse latest Browse all 82360

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>