meso-web

Sources of the |Méso|Star> website
git clone git://git.meso-star.fr/meso-web.git
Log | Files | Refs | README | LICENSE

commit 4cd27415b895669624426c3f67f37533b0d0d500
parent 09d914a7d5e6e1dfa39d5aad14cb2b7cd6333554
Author: Vincent Forest <vaplv@free.fr>
Date:   Fri, 11 Aug 2017 15:46:08 +0200

Ensure W3C compliance and center the whole page content

Diffstat:
Mmeso.css | 19++++++++-----------
Msolstice.html | 23++++++++++++-----------
2 files changed, 20 insertions(+), 22 deletions(-)

diff --git a/meso.css b/meso.css @@ -1,7 +1,9 @@ body { background-color: #cccccc; - font-family: Liberation Sans,sans-serif; + font-family: "Liberation Sans",sans-serif; margin: 0 auto; + text-align: center; + max-width: 50em; } h1 { @@ -16,14 +18,14 @@ h2 { } code { - font-family: Liberation Mono,monospace; + font-family: "Liberation Mono",monospace; color: #666666 } pre.code { padding-left: 2em; display: block; - font-family: Liberation Mono,monospace; + font-family: "Liberation Mono",monospace; color: #666666 } @@ -44,29 +46,26 @@ pre.code a { /******************************************************************************* * Navigation bar ******************************************************************************/ -#navback { height: 2em; } #navcontainer { height: 2em; - position: absolute; } #navcontainer ul { - list-style-type: none; float: left; + list-style-type: none; + padding: 0.5em 0 0 0; + float: center; margin: 0; } #navcontainer li { - float: left; padding: 1em 1em 1em 1em; height: 1em; color: #000000; - float: left; display: inline; font-weight: bold; font-variant: small-caps; position: relative; - top: -0.5em; } #navcontainer li#cur { @@ -76,7 +75,6 @@ pre.code a { #navcontainer a { text-decoration: none; color: #000000; - outline: 1; } #navcontainer a:hover { @@ -89,7 +87,6 @@ pre.code a { #content { padding: 1em 2em 1em 2em; background-color: #ffffff; - max-width: 50em; text-align: justify; font-size: 10pt; clear: both; diff --git a/solstice.html b/solstice.html @@ -1,13 +1,15 @@ -<html> +<!DOCTYPE html> + +<html lang=en> <head> - <meta charset="utf-8"> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Solstice</title> <link rel="stylesheet" title="default" href="meso.css"> </head> <body> -<div id=navback><div id="navcontainer"> +<div id="navcontainer"> <ul> <li><a href="">Home</a></li> <li id="cur">Solstice</li> @@ -15,7 +17,7 @@ <li><a href="">kspectrum</a></li> <li><a href="">Star-Engine</a></li> </ul> -</div></div> +</div> <div id=content> <header> @@ -24,13 +26,12 @@ <div id="news"> <p><b>Solstice 0.2.3 is available</b></p> - <p>Fix several bugs and update the man pages: + <p>Fix several bugs and update the man pages:</p> <ul> <li> GNU/Linux: <a href="">tar.gz</a> / <a href="">md5</a></li> <li> Windows: <a href="">zip</a> / <a href="">md5</a></li> </ul> <ul><li>Sources: <a href="">zip</a> / <a href="">md5</a></li></ul> - </p> </div> <p>Solstice computes the <b>total power</b> collected by a concentrated solar @@ -85,7 +86,7 @@ analysis tool, <i>etc.</i>.</p> <div id="img" style="width: 18em"> <a href="themis.png" onclick='window.open(this.href); return false;'> - <img src="themis.png" style="float: relative"> + <img src="themis.png" style="float: relative" alt="Themis in paraview"> </a> <div id="caption"> Example of Solstice outputs post-processed and then displayed in @@ -147,10 +148,10 @@ HTML files stored in the <code>share/man/man1</code> and use the <code>man</code> command-line to read its ROFF version.</p> <pre class="code"> -~ $ man <a href="solstice.1.html">solstice</a> -~ $ man <a href="solstice-input.5.html">input</a> -~ $ man <a href="solstice-output.5.html">solstice-output</a> -~ $ man <a href="solstice-receiver.5.html">solstice-receiver</a> +~ $ man solstice +~ $ man solstice-input +~ $ man solstice-output +~ $ man solstice-receiver </pre> </div> <!--content-->