By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,702 Members | 1,760 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,702 IT Pros & Developers. It's quick & easy.

How to set stylesheet padding-right pixel value from javascript

100+
P: 111
Hi all,

I want to set the pixel value 10px from javascript.

This style in a file stylesheet.css.

Javascript in a file script.js


p,h2,h3
{
padding-right: 10px;
}

Thanks in advance
May 16 '08 #1
Share this Question
Share on Google+
1 Reply


harshmaul
Expert 100+
P: 490

Post your reply

Sign in to post your reply or Sign up for a free account.