I’m not sure if this has always been the case, but when I select a div and set a link, it is converted to an anchor. With this it loses some settings? Depending on the following design, the layout shifts / messed up.
Am toggeling the link of the div here:
Could provide the blocks as component if one would like to take a look
I think what you are describing isn’t a Cwicly specific behaviour with links, but an expected one.
To clarify, <a> tags are inline elements.
Inline elements flow within the text, which means they won’t take up the full width or height of a container.
This can cause issues with spacing and layout, making it seem like the element is distorted.
To avoid this, be sure to set your linked element (div in your case) to display: block; which makes it a block-level element, thus taking up the full width of its container.
Please don’t hesitate to let me know if you have any more questions on this.
@Araminta, if I understand correctly, the issue is not that <a> tags are being created, it is that they are replacing the element (as opposed to wrapping the element or its contents).
That is what I mean by replacing. If it is a <div> and you set it to a link, it changes to an <a>. Thereby the tag is replaced as opposed to the <div> or its contents being wrapped by an <a>.