foundation-emails
foundation-emails copied to clipboard
[Alignment] attribute valign for inky not working
Example style="vertical-align: middle;"
- works well, but valign="middle"
not working
I also stumbled across this. This example from the documentation does not work: https://get.foundation/emails/docs/alignment.html#vertical-alignment
I can confirm this bug on my end as well. Hopefully this project gets some attention soon!
I confirm, bug reproduced. Was downgrade to version 2.2.1 of foundation-emails package and it's working again
It's because in 2.3.0 version th
is also set to top https://github.com/foundation/foundation-emails/blob/v2.3.0/scss/components/_normalize.scss#L80
I fixed it for myself by
[valign="top"] {
vertical-align: top;
}
[valign="center"] {
vertical-align: center;
}
[valign="bottom"] {
vertical-align: bottom;
}