Uploaded picture of problem.
By first part of the style element you mean the right? I uploaded a picture to display what I have clearer.
Never mind, got it working.