Skip to content

Instantly share code, notes, and snippets.

@soup-bowl
Last active September 1, 2017 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soup-bowl/143c656d55d5b0db6ddc1cfdd8045a12 to your computer and use it in GitHub Desktop.
Save soup-bowl/143c656d55d5b0db6ddc1cfdd8045a12 to your computer and use it in GitHub Desktop.
A quick way to display a quick no.
<?php
$words = [
"No"
];
$background = "black";
$colour = "white";
?>
<head>
<title>Is something working yet?</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/7.0.0/normalize.min.css">
<style>
body {
background-color: <?php echo $background; ?>;
}
h1 {
color: <?php echo $colour; ?>;
font-family: sans-serif;
font-size: 10em;
margin: 0;
}
.centered {
position: fixed;
top: 50%;
left: 50%;
margin-top: -50px;
margin-left: -100px;
}
</style>
</head>
<body>
<div class="centered">
<h1>
<?php echo $words[rand(0, (count($words) - 1))] . "."; ?>
</h1>
</div>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment