Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Thread Starter
mpow
(@mpow)
yeah, I thought so too, but when I add more to the appropriate margin in adds more white space instead of clear space. How do i make it clear without making the entire post thread clear?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Oh, I think I understand. Perhaps you need to close off the element that has the white background, then start a new one after it?
This is what I think you have at the moment: http://cssdesk.com/TvJD5
So, to resolve that you’d close off the element that has the white background and start a new:
<div class="post">
<div>
This is an example of a post.
</div>
</div>
<div class="post">
<div>
this is an example of another post :)
</div>
</div>
Thread Starter
mpow
(@mpow)
got it. trick it to move a background color css in to the .type-post but make sure that there is none in the content {}, as that creates a style rule for the entire content of the page that overrides the other styles.
whew!