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:28 am
#148515
Participant
Hi Tom, I just tried your method out. Here’s what happened:
.entry-content p {
margin-left: 12px;
margin-right: 12px;
}
(What I’m trying to implement here. It scales down by 24px any images reaching the full width of the content area)
.entry-content p img {
margin-left: -12px;
margin-right: -12px;
}
(the new bit)
Margin styling the img tags seems to only alter their position for me, not ‘rescale’ them, so to speak. For example if I add an value like margin-left: -160px, images start clipping out of the content area instead of shrinking in size.