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
hankknightAsked:
Who is Participating?
 
hieloCommented:
$(function(){
 $("<style>#bodytext2 div  {padding: 1px !important;border: 1px solid #fafafa;}</style>").appendTo("head")
});
0
 
hankknightAuthor Commented:
Thanks, hielo!

If you get a chance, could you please look at  this unrelated item?
http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_26074437.html
0
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.