Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

LaraBABA's avatar

How to get fixed percentage column size with markdowns?

Hello,

I cannot work out how to get fixed width for my columns with Markdown, any idea please?

@component('mail::table')
| Category   | Description    | Price   | Name    |
| :--------- | :------------- | :--------- | :------- |

@foreach()

@endforeach

@endcomponent

At the moment if I have a td with more text it stretches it pushes the rest of the columns

Thanks,

0 likes
4 replies
LaraBABA's avatar

Thanks Snapey,

I saw this post but I was hoping for a more structured way of doing it. If this is the only choice it is a very strange move from Laravel to do this.

Thanks

Snapey's avatar

no blame on Laravel. Markdown does not support table column widths.

LaraBABA's avatar

Just to let you know. This works on windows and android, on IOS they are detected as missing images.

I will try with DIVs and Spans to see is this will work.

Please or to participate in this conversation.