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
2010-10-05 15:41:29
Yeah, no need for a class: This will work fine.
Pekka
2010-10-05 15:42:09
I'd take the same approach
kalengi
2010-10-05 16:25:47
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
2010-10-05 16:32:19
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
2010-10-06 00:00:18