Using Javascript for styling content
Is there a problem to using javascript for styling content?  

My website requires javascript.  There is this text on my website that I want vertically centered.  The text could be either 2 lines or 3 lines long.  With javascript I could vertically center it pretty easily.  The CSS ways to vertically center it seem complicated and include IE hacks.

So, is there a downside to me using javascript for this styling, considering I have already decided that my website will require javascript?
Using Javascript for styling content
===

Is there a problem to using javascript for styling content?  

My website requires javascript.  There is this text on my website that I want vertically centered.  The text could be either 2 lines or 3 lines long.  With javascript I could vertically center it pretty easily.  The CSS ways to vertically center it seem complicated and include IE hacks.

So, is there a downside to me using javascript for this styling, considering I have already decided that my website will require javascript?