• Resolved Hardhat

    (@hardhat)


    Hi all

    My second problem in as many days…

    I’m trying to apply a class style to a couple of images in a page that I don’t want to have borders.

    My default main CSS says that all images will have a v light grey 1 px border and a margin.

    The actual global CSS is as follows:

    #content img,#contentwide img{border:1px solid #d0d0d0;float:left;margin:3px 15px 8px 0;}

    Now to stop these few images that I choose getting that border, I’ve been trying to apply the following class style:

    .nbimg{border:none}

    2 problems:

    1. It doesn’t seem to be working!

    2. When I try to type the class style in place in Code view (eg: <img class="nbimg" src="https://...) on hitting save and continue editing WP picks up the class code and places it after the file path and before the alt= part of the image code.

    No matter what I do I can’t get it to stick in place.

    Any thoughts?

    Cheers in advance

    Hardhat

  • The topic ‘2.1.2 and the moving image Class’ is closed to new replies.