Home › Forums › CSS › Want to pad post text without affecting post images › Reply To: Want to pad post text without affecting post images
August 29, 2013 at 10:02 am
#148511
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.