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

#148515
middayminer
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.