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
Showing only changes of commit 02c2b6662c - Show all commits

View File

@ -1,2 +1,2 @@
# yagyuu.moe # 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); $img = getRandomFromArray($imgList);
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html>
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<title>Yagyuu</title> <title>Yagyuu</title>
<style type="text/css"> <link rel="stylesheet" href="style.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>
</head> </head>
<body> <body>
<center>
<!-- image displays here --> <!-- image displays here -->
<div><img src="<?php echo $path . $img ?>" alt="" /></div> <div class="pic-center">
</center> <img src="<?php echo $path . $img ?>" alt="" />
</div>
</body> </body>
</html> </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; }