I'm trying to style an anchor tag as a block element for specific design purposes - setting the width, height, and padding. However, I also need this block element to be hidden initially, so I've used CSS to set its display value to none.
The issue is that by default, anchor tags are inline elements, so when I hide it using display: none, it still behaves as an inline element.
Is there a way to make an anchor tag act as a block element while also being hidden in its initial state?
Any help or suggestions would be greatly appreciated. Thank you!