I think that should work, but if for some reason it keeps on giving you the % width, What you can do is get the width and then divide it by the window width
var widthInPx = $(widnow).width()/$('yourElement').width