How to check really width with "auto" value on css

I have a loop:

var takediv = document.getElementById('eye');
for(var i=0; i<kategoria.length; i++){
takediv.innerHTML += '<img alt="'+(kategoria.length-i)+'" onclick="changef(this.alt)" src="mobile/img/pic/'+loc+"/mini/"+kategoria[kategoria.length-i-1][0]+'" style="cursor: pointer;"/>';
}

On css all of this img have:

height: 80px;
width: auto;

And finally after loop I need to give for div(‘eye’):

document.getElementById(‘eye’).style.width

which will be sum of all img inner this

It is my first post here so sorry for mistakes.
Please help, and thanks!


Source: css

Leave a Reply