Support » Themes and Templates » Perform a fucntion when a CSS style is applied

  • Is there anyway in WordPress if you apply a style using CSS it will run a function (i.e wrapping an image in multiple divs).

    On my current static site ( when I assign class “browser_image” I would like it to it includes top and bottom divs to act as browser chrome divs while reduce page loads.

    Below is an example of what I mean:

    <div class="website_design_portfolio">
    		<h2>CDP - Information Management</h2>
    		<div class="browser_top"></div>
    		<div class="browser_image"><a href="" target="_blank"><img src="images/portfolio/website_design/cdp.jpg" title="CDP - visit website" alt="CDP - visit website" width="940" height="740" /></a></div>
    		<div class="browser_bottom"></div>

    Any help would be greatly appreciated. Cheers!
    – Rich

  • The topic ‘Perform a fucntion when a CSS style is applied’ is closed to new replies.