Forum Discussion
Fellsteruk
Boss
Found this, may help:
"It's because anchors are as standard, inline elements. Adding display:inline-block will make the above code work."
appslevine
11 years agoGuide
This does not work. I changed both elements to inline block elements, and only one or the other. None of the options work. This is my code:
<a href="">
<div class="inside">
Long line of text blah blah blah.
</div>
</a>
<a href="">
<div class="inside">
Long line of text blah blah blah.
</div>
</a>
Related Content
- 12 months ago
- 4 months ago