IMG Border problems

  • Author
    Posts
  • #327681

    mdnl
    Member

    http://www.thegers.info is my blog, I have set my CSS to

    img {
    border:1px solid black;
    }

    How would I go about editing this so that only content within the posts get the border, as it adds a border to ALL images on the site, is there a div class or something I can put in there so it only adds img code to the posts?

    I’m using the Contempt them and I am on WP.com with a CSS upgrade.

    The blog I need help with is thegers.info.

    #327993

    mdnl
    Member

    (i.e. the No Comments ยป | Fixtures, Rangers | Tagged: 8 2 08, Forfar Athletic, Rangers bits all have borders when they shouldn’t.)

    #328048

    gwideman
    Member

    Modify your added CSS so that it specifies img enclosed within the CSS class used for an entry (which, amazingly, is the class named “entry”):

    .entry img {
    border:1px solid black;
    }

    And if you’re fiddling with CSS, you might get some use from:
    http://grahamwideman.wordpress.com/2009/01/23/firebug-essential-for-cssing-wordpress/

    #328067

    mdnl
    Member

    Thanks mate, awesome.

The topic ‘IMG Border problems’ is closed to new replies.