simple if-statement question

simple if-statement question

i want to make an if-statement that checks if the div is a certain width (either by class or id... doesn't matter) then executes the code if, for example, the div (named "top") equals 130px... how do i write the syntax?

thanks in advance!