I am not sure in what sense the given example didn’t work as this snippet gives columns of widths 25%, 50%, 25% as required in the question.
However, note that some email systems may not support CSS other than an inline style so in the snippet the styles have been put inline and padding etc removed as you will have to decide what to do about that and compensate in the width definitions. It may still be that email systems do not accept HTML even just with inline CSS but it depends on your exact use case whether this matters and how you will ensure the info is presented OK to the user if it is ignored.
I need to create a 3-column layout where the center column is twice the width of the side columns, without using bootstrap, since bootstrap doesn’t work in emails.
In bootstrap, it would be:
<div class="container">
<div class="col-3">
</div>
<div class="col-6">
<!-- All page content goes here -->
</div>
<div class="col-3">
</div>
</div>
Scroll down to the section “In this example, we will create three unequal columns:” and click the “Try It Yourself” button. This should be exactly what you’re looking for?
Comment posted by tacoshy
uhm what did you try so far? easy taks for
Comment posted by s.kuznetsov
Do you want to create a layout for your email? If for electronic writing, then
Comment posted by stevec
@s.kuznetsov yes it’s for emails. I only learned bootstrap wouldn’t work about an hour ago, so I cannot use it, and cannot use anything else that won’t work in email.
Comment posted by s.kuznetsov
@stevec, use a
Comment posted by Sido4odus
Why table and not grid system ? @Temani Afif
Comment posted by Temani Afif
@SidouMahmoud the only system that is old enough and is supported by all the email client (like wanted by the OP)
Comment posted by Sido4odus
Ah, I did not read the comments in the post above. Thank you