I need help formatting data in CSS. The code I have is as follows:
if (ext){
switch (ext.toLowerCase())
{
case 'doc': pos = 'doc'; break;
case 'bmp': pos = 'bmp'; break;
case 'jpg': pos = 'jpg'; break;
case 'jpeg': pos = 'jpeg'; break;
case 'mp3': pos = 'mp3'; break;
case 'avi': pos = 'avi'; break;
case 'wmv': pos = 'wmv'; break;
case 'flv': pos = 'flv'; break;
case 'pdf': pos = 'pdf'; break;
case 'txt': pos = 'txt'; break;
case 'xls': pos = 'xls'; break;
case 'rar': pos = 'rar'; break;
case 'zip': pos = 'zip'; break;
default: pos = 'doc'; break;
};
fileIcon:after.css({content:'pos'})
};
});
How do I translate this case data
into CSS styling:
.fileIcon:after
{ content: "";
}
The solution: https://jsfiddle.net/e9wjzqjd/3/ if assistance is needed