WordPress.org

Ready to get started?Download WordPress

Forums

Perform a fucntion when a CSS style is applied (1 post)

  1. richmcnabb
    Member
    Posted 3 years ago #

    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 (http://www.richmcnabb.com) 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="http://www.cdp.co.nz" 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>
    	</div>

    Any help would be greatly appreciated. Cheers!
    - Rich

Topic Closed

This topic has been closed to new replies.

About this Topic