[SOLVED]Strange return value from .css("width")
I am using jQuery for a little project of mine, and before I start, I know the difference between .width() and .css("width"). Here is the code: https://code.sololearn.com/Wh1mfm0gGXlY . When you click the button, you will see in the console the data for the xp bar (the one below the moving progress bar). Specifically, its width numbers using jQuery's .css("width") calls. I am trying to extract the percentage, which should just be parseInt($(element).css("width"), 10), but it is returning the pixel numbers as if I am using .width(). The code in question starts at line 40 and goes to line 67. Apparently it will work using the vanilla JavaScript calls: element.style.width. What is going on here? BONUS: Why is using "height: 100%" for the .buttonContainer class in the css causing the button to extend beyond the screen height? It only happens in SoloLearn's environment, not on my local host.