views:

20

answers:

2

I want to set a default class for all images in a single post eg. they have a red border. How do i do that? Something like on http://net.tutsplus.com

+2  A: 

You can apply the div containing the post an id attribute equal to the id of the post and use

#post-[id] img { border:1px solid red; }
MatTheCat
Yeah, no need for a class: This will work fine.
Pekka
I'd take the same approach
kalengi
That will only work for that specific post. It will not work for all posts. If you want to use it for all psots, then maybe add a div container that wraps the post and give that an ID.
Steven
A: 

There's a filter named get_image_tag_class that should give you the access you need if you're using built in functionality to place images.

Gipetto