The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to handle number 'objects' Reply To: How to handle number 'objects'


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;