S
S
sickgang2020-06-03 14:25:04
HTML
sickgang, 2020-06-03 14:25:04

How to fix this layout lag?

Hello!
In the template of the bitrix:news component, I finish the layout, I decided to put the "more" button on the news.
I add a div to the a tag, at the same level, in it a with the text "more", which leads to the news, when the page loads, the entire block leaves a, and becomes on the same level with it, and if the link is deleted in the div, then div will stand as in layout, how to fix it?
The first photo in the editor is how it is, the second is how the dom is built
5ed788817cd1e664299031.png
5ed78886895e2844950084.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2020-06-03
@sickgang

Link within a link is not supported by browsers. But there is a hack

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question