I've managed to change the padding of an element using javascript. I changed:
#content {
border-right: 1px solid #e6e6e6;
margin: 0 -31px -9999px -5.1%;
padding: 106px 30px 9999px 5.1%;
background: #fff url(../images/bg-content.gif) repeat-y;
position: relative;
z-index: 2;
}
using:
document.getElementById("content").style.padding = "106px 0px 9999px 0%";
How would I go about changing a css attribute that's a class?
i.e.:
.post p {margin: 0;}







