Semantic question
I have a quick semantic quesiont. I have my product card surrounded with bot an article tag and a a tag, but what's the most accurate solution for this? I don't like having both at the same time but I feel like it's more accurate semanticly.
(feel free to ignore the twig template variables etc)
39 Replies
as long as there's nothing interactive inside the A tag, you're good. I agree that this is semantically acurate
it's makes it trickier to style I feel like
if you need, you can always add wrapper elements to make styling easier
not sure tbh, was alright with this one. but in some cases it does makes it trickier due to the extra a tag
you may have to reset some of the default styles on the anchor for
.c-product a
Semantically it's correct, which is your title. Style-wise is something completely different and not related to the semantics of the elements.
ah ye fair
You could probably put the anchor tag only around the product title and call it a day. The entire thing doesn't have to be a clickable link
I think the user would expect the entire card to be clickable no?

or set the tag at the top, and make it take the whole space
using css
I'il leave it for now since it's already done, but I keep notes for next time.
I wouldn't, no. And on mobile if I'm scrolling down and accidentally tap on the image and it takes me somewhere else? Oof
I honestly would expect that, yeah
on mobile it's harder to accidently tap afaik, cuz its needs to be a rather forcefull tab
the accidental tap is annoying though
on desktop it's easier to misclick cuz the desktop registers the click faster.
On desktop I scroll with the mouse wheel, though, not click-and-drag so I have more misclicks on mobile
I think if I where to see this I would try to click on the image but nothing would happen.
I guess that goes to show that it's a personal preference, hey?
possibly anyways thx for the tips
You'll find many truths we cling to depend greatly upon our own point of view– Obi-Wan Kenobi
perspective matters
i wouldn't too, but, if you really want everything to take the full space, it is a good option
it also allow other interactive elements to be interactive
I mean technically for mobile I could change it differently?
with css, yes
I'd recommend checking out what other sites are doing. Conventions matter a lot in UX
for this project won't be doing that tho.
The couple I checked (bol, Amazon, the yarn store I was on) all have fully clickable product cards
anyways thx a lot gonna continue with my project now.
ig it also depends per country, UI/UX rules in china are different then from western standards afaik
mind if I just use this thread for other questions regarding my project?
I don't fancy creating a new one everytime
I just realised this is a review section

bootstrap question
I currently have my container set up like this but does anyone know a way using bootstrap how to make sure the image does take the full fluid width?
as shown in the image

New question, new post please
😞
for two reasons:
1) #help is supposed to also be a kind of knowledge bank. If everyone just had their own single help post, info would be impossible to find.
2) New posts get new eyes. I don't know anything about bootstrap, and I doubt Beck would use it either. Epic might, but I'm sure there's folks that'll click on a question with "bootstrap" in the title
it's just annoying especially if the question seem small.
thems the rules I'm afraid
No question too small
a lot of the time even "tiny quick" questions balloon to a hundred messages
and if you do occasionally have a question that's just going to get a "yes" as an answer, then so be it