• Just wanted to chime in and say that I was searching for a way to offset the Popular Posts widget as I use two widgets in my sidebar that are separated by an ad.

    So what I did was have the first show three results.

    Then the second widget shows six results and gets its own CSS class.

    You can then target the child elements underneath using CSS first-child, nth-child(2), nth-child(3) using display: none, which makes them disappear leaving results 4,5 and 6.

    So now I have a sidebar with popular posts showing the first six results but with an ad inbetween.

    Hope it helps someone.

    • This topic was modified 3 years, 7 months ago by mattwmc2001.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Offset using CSS’ is closed to new replies.