FAQ list with CSS :nth-child

Posted on by
faq-list

On the Indiemondo website i’m bulding these days we needed a simple FAQ which could be edited from the Wordpress backend. I considered  to make some kinda custom post type or by doing with custom fields on the page in order to style the A and the Q differently, but it all seemed a bit overkill for a simple list. So in the end I ended up doing it by using CSS :nth-child. Knowing that the Q’s and A’s would just be a list this seemed like the obvious choice. […]

This entry was posted in Code and tagged , .