Change .css file from javascript -



Change .css file from javascript -

i have in css file:

#tabs .bg { background: url("../images/bg-tabs-r.gif") no-repeat scroll 100% 0 transparent; height: 39px; line-height: 42px; overflow: hidden; width: 100%; }

through javascript how alter background blank color , line-height 28px.

use straight on element:

mytab=document.getelementbyid("tabs"); mytab.style.background="white"; mytab.lineheight="28px";

javascript css

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -