From: Erik Faye-Lund Date: Wed, 17 Apr 2019 12:46:00 +0000 (+0200) Subject: docs: simplify css-centering X-Git-Tag: upstream/19.3.0~6696 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5ffe4879b6aec4908a1e8381064325a7d962fbb3;p=platform%2Fupstream%2Fmesa.git docs: simplify css-centering With "display: flex;" we can make this a bit more automatic, not requiring a bunch of values to be of specific values to get the right centering. Signed-off-by: Erik Faye-Lund Reviewed-by: Eric Engestrom --- diff --git a/docs/mesa.css b/docs/mesa.css index 06e94c5..d625f61 100644 --- a/docs/mesa.css +++ b/docs/mesa.css @@ -44,13 +44,12 @@ iframe { .header { background: url('gears.png') 15px no-repeat, black url('gears.png') right no-repeat; height: 80px; + display: flex; + text-align: center; } .header h1 { color: white; font: x-large sans-serif; - text-align: center; - height: 50px; - margin: 0; - padding-top: 30px; + margin: auto; }