I am currently redesigning the Kotaku website and facing difficulties in creating a list for the footer. Below is an image illustrating my issue.
The 'Popular tags' section has been created using the <ul>
and <li>
elements, with an <a>
link inside each list item. The right-border of 1px is applied to these list items to create dividers, but the last item on the line (highlighted in red) does not have this divider as expected. This occurs whenever an item reaches the end of a line before shifting to the next one, causing the border to disappear when resizing the window. I am struggling to replicate this behavior.
I'm unsure how to provide the CSS code related to this specifically, considering that the Devtools display about 103 lines just for the styling of the <a>
tag. However, I did notice that removing the 'display:inline-block' property from the <a>
tag inside the list item resolves the missing border, although I do not understand why this happens.
Could someone please examine the Kotaku page and explain how this effect is achieved? I realize this is quite a request, but I can't seem to find any resources online addressing this issue. This is my final attempt before resorting to a temporary workaround.
Thank you.
Kotaku website footer, highlighting the missing border in red circle
https://i.sstatic.net/vUZhN.jpg
This question has been rephrased for better clarity