01546: CSS "valign" attribute is considered obsolete

Summary: CSS "valign" attribute is considered obsolete
Created: 2026-03-24 06:17
Status: Discussion
Category: Feature
From: gnuzoo
Assigned:
Priority: 51
Version: all
OS: all

Description: The valign attribute is considered obsolete in HTML5 and should be replaced with CSS for vertical alignment. This change is part of the broader effort to separate content structure from presentation, making CSS the preferred method for styling web pages. The valign attribute was used to control the vertical alignment of content within table cells, but its use is now discouraged in favor of CSS properties like vertical-align. This approach not only improves code quality but also ensures that browsers continue to support the attributes without breaking layouts.

gnuzoo

There is the variable $EnableTableAutoValignTop, set to 0 to disable automatic valign=top for complex table cells. You can then use CSS classes or styles in your tables. Petko

Just a little more discussion --
PmWiki CSS should replace valign with vertial-align.
Replace $EnableTableAutoValignTop with $EnableTableAutoVertcalAlignTop
and only affect places where 'valign' was used. Browsers might stop
supporting valign. Doing so now is better than better than being forced
to do it all immediately later. If someone sets $EnableTableAutoValignTop
provide and error message telling them to change it to the new variable.
--gnuzoo