00860: Add min and max width and height, clear; to [[PmWiki/Tables|table]], div, block, and [[PmWiki/WikiStyles|style]] directives

Summary: Add min and max width and height, clear; to table, div, block, and style directives
Created: 2007-01-10 00:27
Status: Closed - added for 2.2.68
Category: Feature
From: simon
Assigned:
Priority: 3
Version: 2.0 beta
OS: n/a
Description
Wherever the width=123pct or width:auto type of directive is allowed could you please also allow

min-width and max-width. [1] [2]

Similarly for height, please permit min-height and max-height. [3] [4]

Also please add support for the clear:right, clear:left, and clear:both. [5]

%rframe%Tahi
%rframe%Rua

%rframe clear=right%Toru
%rframe clear:right%Wha
%lframe clear:left%Rima
%lframe clear=left%Ono
%rframe clear=both%Whitu
%lframe clear:both%Waru

Tahi Rua

Toru Wha Rima Ono Whitu Waru

Please allow quoted attributes, viz

(:table style="width:100%; border:thin dotted red;":)
(:cellnr:)Left%rframe%Right
works
(:tableend:)

(:table style="width:'100%'; border:'thin dotted red';":)
(:cellnr:)Left%rframe%Right
still doesn't work
(:tableend:)
LeftRight

works

LeftRight

still doesn't work

min-width and max-width

(:table style="width:100%; border:thin dotted red;" border=1:)
(:cellnr:)text
(:cell:)short text
(:cell max-width:25% :) long text that is intended to exceed 25% of the table and thus wrap.
(:tableend:)

(:table style="width:100%; border:thin dotted blue;" border=1:)
(:cellnr:)text
(:cell:)short text
(:cell style="max-width:25%;" :) long text that is intended to exceed 25% of the table and thus wrap.
(:tableend:)
text short text long text that is intended to exceed 25% of the table and thus wrap.
text short text long text that is intended to exceed 25% of the table and thus wrap.

Use cell width=25% (min-width and max-width cannot be used for table cells, see standard). --Petko January 17, 2020, at 08:58 AM

(:table style="width:100%; border:thin dotted blue;" border=1:)
(:cellnr:)text
(:cell:)short text
(:cell width=25% :) long text that is intended to exceed 25% of the table and thus wrap.
(:tableend:)
text short text long text that is intended to exceed 25% of the table and thus wrap.

See also