Hi,
I am creating an archive layout which will bring through a CPT’s category posts. However, I am getting strange layout problems when I set either the column (or even a div within the column) to HTML tag <a>.
In the first screenshot, when I change the HTML tag from <div> to <a>, the two child divs, which contain the image and text, shift out of the column and act as columns in their own right. However, the first post’s layout is normal.
The second screenshot shows my section’s layout.

If I revert the column’s HTML tag to <div>, the layout is correct. I cannot work out why the divs shift if the <a> tag is selected. My aim is to have the entire column as the clickable link.
Thanks,
Christopher


