Support » How-To and Troubleshooting » element.style driving me crazy

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!


Viewing 2 replies - 1 through 2 (of 2 total)
  • Michael
    Forum Moderator


    can you post a link to an example post?

    you might be able to overwrite some of the styles with using !important with your grid classes



    Hi wonder if anyone can help!
    I am using WP e-Commerce bug fix release January 25, 2012 and here http://www.love-glass.co.uk/?page_id=10 I would like to change the size of image from 45px to 129px square. In the firebug is telling me to change the element.style., which I think? has to be change in my wpsc-category_widget.php??? I had a little fiddle with it but still no luck. Any hints what to do?
    Thank you in advance,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘element.style driving me crazy’ is closed to new replies.