RelativeLengths

test CSS relative lengths
Test

  • rem
  • vh
  • vw
  • vmin
  • vmax
%cframe width=7rem bgcolor=lightblue border='3px solid red' padding=2rem% http://pmichaud.com/img/misc/gem.jpg
%width=50vw% http://pmichaud.com/img/misc/bubble.jpg %%

%height=50vh% http://pmichaud.com/img/misc/bubble.jpg %%

Note that for historical reasons inline wikistyles for images and tables don't insert css-styles but html-attributes height, width and align. Browsers expect the height and width attributes to contain numbers and interpret them as pixels. So above, the first picture is 50 pixels wide, the second 50 pixels high; below the table is 40 pixels wide. This may be something we can update. UpdateMe --Petko June 29, 2015, at 02:32 PM

||width=40vmax border=1
|| 40 * 1/100th of the largest side||


|| style="width:40vmax;" border=1
|| 40 * 1/100th of the largest side||


40 * 1/100th of the largest side
40 * 1/100th of the largest side
(:div class="tabtable" style="width:50vmin; border:0.25rem dotted blue":)
div content
(:divend:)

div content

 0: 00.00 00.00 config start
 1: 00.01 00.01 config end
 2: 00.22 00.20 MarkupToHTML begin
 3: 00.22 00.20 MarkupToHTML begin
 4: 00.23 00.21 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
 5: 00.23 00.21 ReadApprovedUrls SiteAdmin.ApprovedUrls end
 6: 00.24 00.22 MarkupToHTML end
 7: 00.24 00.22 MarkupToHTML begin
 8: 00.24 00.22 MarkupToHTML end
 9: 00.24 00.22 MarkupToHTML begin
10: 00.24 00.22 MarkupToHTML end
11: 00.24 00.22 MarkupToHTML begin
12: 00.25 00.23 MarkupToHTML end
13: 00.25 00.23 MarkupToHTML begin
14: 00.25 00.23 MarkupToHTML end
15: 00.35 00.32 MarkupToHTML end
16: 00.35 00.32 MarkupToHTML begin
17: 00.37 00.33 MarkupToHTML end
18: 00.37 00.33 MarkupToHTML begin
19: 00.37 00.34 MarkupToHTML end
20: 00.37 00.34 now
Peak memory: 3,675,864 bytes