element.style driving me crazy
I want to be able to display my post images two by two, with captions under them. So I´m using some jquery in my template to add “grid_12 alpha” to every even image parent – (that is the div with id=”attachment-something” that wordpress wraps my images and captions in – and “grid_12 omega” to every odd parent.
BUT, these styles get overridden by element.style which stops my magic from happening. I know element.style is not in the css but in the code, but I cant find where – and I´m guessing it must be generated by wordpress itself. So how can I override it? It keeps setting the divs width which I should be doing with my grid classes!
- The topic ‘element.style driving me crazy’ is closed to new replies.