• Resolved pdlr

    (@pdlr)


    I am wondering if there is a way to effect the css properties of the IMG tag only within a post. I would like for the users to be able to upload a series of images without having to set the border to 0 and the space around each image to 5 pixels; this can be very time-consuming when working with dozens of images.

    I have tried different variations, but I always end up affecting all images on the entire site.

    Thanks for any help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Probably, but depends on your theme.

    In my theme, I would do that with this CSS directive:

    .post img{border:none;margin:5px;}

    (.post is the div class that each post gets wrapped in.)

    Thread Starter pdlr

    (@pdlr)

    Thank you. This solved the problem.

    .entry is also an option. I think it includes only the content of the post and not the title and date.

    I am building on the kubrik theme.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘css for IMG within posts’ is closed to new replies.