fix(body): background height
parent
5c6b0e9776
commit
3d49222fd3
|
|
@ -1,10 +1,22 @@
|
|||
/* background */
|
||||
body {
|
||||
html, body, #background {
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
}
|
||||
#background {
|
||||
background: url(../img/shirakawa.jpg);
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-color: #704214;
|
||||
position: relative;
|
||||
overflow: scroll;
|
||||
}
|
||||
#content {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
|
||||
color: #fff;
|
||||
text-shadow: 1px 1px #000;
|
||||
|
|
|
|||
|
|
@ -22,6 +22,8 @@
|
|||
<link rel="stylesheet" href="css/flavour.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="background">
|
||||
<div id="content">
|
||||
|
||||
<header>
|
||||
<?php echo '<h1>' . $machine->name . '</h1>
|
||||
|
|
@ -54,5 +56,7 @@
|
|||
</p>';?>
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Reference in New Issue