Jump to content

Javascript (without jquery) Dynamically Created StylSheet


astralaaron

Recommended Posts

I am having a weird problem.. my script that I am creating creates a stylesheet dynamically based on some variables, then will assign the classes created to certain elements. This was working fine, when I was only adding padding and font sizes to the classes. The padding and the font sizes change, but for the class that I am changing the margin, the margin will not change... is there some restriction or is this something that must be wrong with my script? Thank you for your time.

 

 

 

EDIT ::::::nevermind...I figured it out seconds after posting. Thanks anyway!

Edited by astralaaron
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...