jQuery: add CSS after page fully loaded

Using jQuery, how can I add this CSS after the page has fully loaded?
#bodytext2 div  {
padding: 1px !important;
border: 1px solid #fafafa;

Open in new window

LVL 16
Who is Participating?
 $("<style>#bodytext2 div  {padding: 1px !important;border: 1px solid #fafafa;}</style>").appendTo("head")
hankknightAuthor Commented:
Thanks, hielo!

If you get a chance, could you please look at  this unrelated item?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.