Forums

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'

#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