473,509 Members | 2,918 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to set stylesheet padding-right pixel value from javascript

111 New Member
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
1 1718
harshmaul
490 Recognized Expert Contributor
check this out...
http://shurie.com/coder/code_details.asp?codeid=25
May 16 '08 #2

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

Similar topics

3
3121
by: Robert Siemer | last post by:
Hello! As CSS2 Sec. 6.4 specifies, UA must apply a default stylesheet. How should I override it _accordingly_? Assume nested ULs: -first +inner +still inner
19
9251
by: deko | last post by:
Firefox will not take the following "font-weight:bold" directive in my stylesheet. Works fine in IE. #rightMenuText h5 { font-weight:bold; padding-bottom:0px; padding-top: 10px;...
2
1770
by: Patient Guy | last post by:
I don't think I have ever encountered something like this before. On a Windows XP running Apache 2.0.53 I do my page development (XP machine). I then upload the stuff to a Linux/Redhat/Fedora...
5
2029
by: lewisthesmith | last post by:
Hi everybody I'm having an odd problem with a Zen Cart customisation I'm working on. Essentially some of the content in the middle of the screen is not showing. Sometimes it will flash on screen...
0
993
by: Beemer Biker | last post by:
I am getting different behavior with the same style depending on where I define the style. The works fine and when I move the mouse the tooltip tracks the mouse when it rolls over the fields in...
0
7412
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7069
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5652
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5060
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3216
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3203
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
441
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.