
Gabriel F. answered 10/29/19
Full Stack Software Developer and Mentor
Hi there. I am not sure what your use case is but normally you would style elements via css unless they need to be styled dynamically. That said, all you need to do to style an element via jQuery is call the .css method on the jQuery object and pass the styles (the same you would use to center your div using pure css) as an object to the method. Just be aware that the css property needs to be camelCased.
If you have an individual property you can set it like this: