From 95a61ceb144137a73ad703f47c8cdedf411b2e3d Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Thu, 8 Nov 2012 18:34:53 -0800 Subject: [PATCH] Center display within window. --- guacamole/src/main/webapp/client.xhtml | 6 +++++- guacamole/src/main/webapp/styles/client.css | 16 ++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/guacamole/src/main/webapp/client.xhtml b/guacamole/src/main/webapp/client.xhtml index c5e4be40b..586fa0cca 100644 --- a/guacamole/src/main/webapp/client.xhtml +++ b/guacamole/src/main/webapp/client.xhtml @@ -33,7 +33,11 @@ -
+
+
+
+
+
diff --git a/guacamole/src/main/webapp/styles/client.css b/guacamole/src/main/webapp/styles/client.css index 7e2d5efcd..2723f1044 100644 --- a/guacamole/src/main/webapp/styles/client.css +++ b/guacamole/src/main/webapp/styles/client.css @@ -138,6 +138,22 @@ div.dialog p { color: #D44; } +div.displayOuter { + height: 100%; + width: 100%; + position: absolute; + left: 0; + top: 0; + display: table; +} + +div.displayMiddle { + width: 100%; + display: table-cell; + vertical-align: middle; + text-align: center; +} + div#display * { position: relative; }