wordpress - Removing white space from UL in CSS -
what's wrong ul in widget titled suosituinta juuri nyt on https://poydalla.net/category/in-english/ ? on front page, categories , blog posts looks wrong, on pages https://poydalla.net/lautapelisuositukset/ looks fine.
i tried comparing css inspect tool of chrome, changing differences pages right ones weren't right.
on top of that, i've googled lot , tried different combos of margins, paddings, line-heights, displays (inline, block, flex etc.) when other ones fine, pages screwed up.
well, wrong margin-bottom: 40px; .archive .post selector. guess intended space article teasers on archive pages but, long ul items have class post, they're gonna affected bottom margin.
it's difficult give solution without knowing entire css (and php giving classes elements) guess try possible solutions:
if allowed edit php/html
just remove class post li items on widget.
if can edit css
adding .archive li.post { margin-bottom: 0 } css should enough. or modify this:
.blog .post, .single .post, .archive .post, .search .post, .search .page { margin-bottom: 40px } to this:
.blog article.post, .single article.post, .archive article.post, .search article.post, .search article.page { margin-bottom: 40px }
Comments
Post a Comment