hakimjaya06 / carrington

Automatically exported from code.google.com/p/carrington
0 stars 0 forks source link

Gallery CSS should target classname on gallery div, rather than parent post class #36

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Targeting the .post-{ID} classname (added by post_class()) to style gallery 
columns is brittle. It also doesn't work in themes that don't use post_class().

See 
http://code.google.com/p/carrington/source/browse/framework/trunk/attachment.php
?r=546#105

Original issue reported on code.google.com by marlfo...@gmail.com on 11 Jan 2011 at 12:35

GoogleCodeExporter commented 9 years ago
A better solution would be to add a generated class to .gallery 
(.gallery-in-{ID}) and target that instead.

Original comment by marlfo...@gmail.com on 11 Jan 2011 at 12:36