Forums

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

Home Forums CSS Want to pad post text without affecting post images Reply To: Want to pad post text without affecting post images

#148511
Tom Houy
Participant

If you use margins instead of padding for the text, you could create a style for IMG tags that are within P tags and reset the margins on them to zero by using negative values equal to the padding, or whatever you like. Something like:

.mystyle p img { margin-top: -20px; margin-right: -20px; margin-bottom: -20px; margin-left: -20px; }

You can’t use negative values for Padding.