The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › [Solved] How to style all that start with attachment_
I want to add a style to all the objects starting with “attachment_” <div id=”attachment_180″ class=”wp-caption alignnone” style=”width: 209px”> How to do this?
Happiness and Peace
This question seems familiar.
[id^="attachment_"] { background: #663399;/* or whatever styles*/ }
http://codepen.io/Paulie-D/pen/pvgLda
http://code.tutsplus.com/tutorials/the-30-css-selectors-you-must-memorize–net-16048
Wow great! And quick as the speed of light. Wot a service! Thanx!