Home › Forums › CSS › How to handle number 'objects' › Reply To: How to handle number 'objects'
December 1, 2014 at 2:33 pm
#189665
Paulie_D
Member
It’s not quite clear to me what you are trying to do as the code you have provided doesn’t seem to relate to images…certainly I can’t see any reference to one.
However, if you want to add padding to any div with an id starting with attachment_
you can do this
div[id^="attachment_"] {
padding: whatever;
}
or if padding around images inside such divs
div[id^="attachment_"] img {
padding: whatever;
}
http://code.tutsplus.com/tutorials/the-30-css-selectors-you-must-memorize–net-16048