No, it has nothing to do with the style.
Your code is just wrong.