Alignment in a cell is right for href link
I try to do something like that in my table cell:
return new HtmlString(
'<div class="flex flex-col">'.
'<div class="text-primary-600">'.$clientDisplay
.'</div>'.
'<div class="text-xs text-gray-500">'.$customerName
.'</div>'.
'</div>'
);
The styling is just from testing, regardless how hard I try, no matter what classes I use, the <a href=""> tag is ALWAYS alligned right in the cell.
When I have text under it, and it is a bit longer, it is also aligned right, but then the a tag is starting where with the text underneeth. However in each option and possibility the text is alligned somehow to the right, it just don't look right.
It isn't aligned to the left and no html or tailwind styles are fixing that.
My column where I try to accomplish that is located in the middle of the table. Maybe this is something common for links because they are handled like actions, I don't know, just assuming. Does anybody have an explanation for this?
0 Replies