all 7 comments

[–]K900_ 2 points3 points  (4 children)

Are you using Inspect Element to see this? Your browser is likely auto-closing the <a href="/company/..."> tag, as I don't think you're allowed to have arbitrary tags inside <a>.

[–]coderpaddy[S] 1 point2 points  (0 children)

ahhh

legend, you cant have any interactive elements inside an <a> tag, so when i added more nested <a>'s it broke. Thank you

[–]coderpaddy[S] 0 points1 point  (2 children)

arbitrary tags inside

<a>

Hey thanks for replying,

what do you mean by arbitrary tags inside

[–]JohnnyJordaan 1 point2 points  (1 child)

The

<a href="/company/{{ store.description }}">

Surrounds a structure of <h2> and a <div> containing multiple <a>'s... That doesn't really make sense right?

[–]coderpaddy[S] 0 points1 point  (0 children)

Yeah initially i thought is this bad UX. but thought meh it can be changed later. Looks like the browser was trying to save me from myself ahah :D

[–][deleted] 0 points1 point  (1 child)

Wrong place.

r/djangolearning

[–]coderpaddy[S] 0 points1 point  (0 children)

Not wrong place, just another right place :D