Make site html5 valid and fix some things #1

Merged
Brawl345 merged 1 commits from master into master 2015-02-06 22:39:28 +01:00
3 changed files with 18 additions and 17 deletions

View File

@ -1,2 +1,2 @@
# yagyuu.moe
Sourcecode from <a href="yayuu.moe">Yagyuu.moe</a>
Source code from [Yagyuu.moe](http://yagyuu.moe/)

View File

@ -33,28 +33,18 @@ $imgList = getImagesFromDir($root . $path);
$img = getRandomFromArray($imgList);
?>
<!DOCTYPE html>
<html lang="en">
<html>
<head>
<meta charset="utf-8" />
<title>Yagyuu</title>
<style type="text/css">
body { font: 14px/1.3 verdana, arial, helvetica, sans-serif; }
h1 { font-size:1.3em; }
h2 { font-size:1.2em; }
a:link { color:#33c; }
a:visited { color:#339; }
p { max-width: 60em; }
/* so linked image won't have border */
a img { border:none; }
</style>
<link rel="stylesheet" href="style.css">
</head>
<body>
<center>
<!-- image displays here -->
<div><img src="<?php echo $path . $img ?>" alt="" /></div>
</center>
<div class="pic-center">
<img src="<?php echo $path . $img ?>" alt="" />
</div>
</body>
</html>

11
style.css Normal file
View File

@ -0,0 +1,11 @@
body { font: 14px/1.3 verdana, arial, helvetica, sans-serif; }
h1 { font-size:1.3em; }
h2 { font-size:1.2em; }
a:link { color:#33c; }
a:visited { color:#339; }
p { max-width: 60em; }
/* so linked image won't have border */
a img { border:none; }
.pic-center { text-align: center; }