I have 3 opt-in pages for separate events. Each needing a different background. I am using blazor c# so I have one main site.css file which contains the body then the rest of the pages get rendered like components.
So if I set my CSS body
to have the background it fills the entire page, obviously. But how can I make the div
which my cshtml
is encapsulated in and make it fill the entire screen? Here is what I have and it's not working properly:
body {
background-color: #202020;
background-repeat: no-repeat;
background-size: cover;
}
#pagewrapperevent1 {
background-image: url('http://i.e.eastbay.com/wpm/100233/WebForms/EB_Event_Signup_1/FL_form-engraved_background.jpg ');
background-repeat: no-repeat;
background-size: cover;
width: 100%;
height: 100%;
padding: 0 0 0 0;
margin: 0;
}
#pagewrapperevent2 {
background-image: url('http://www.lyhyxx.com/data/out/38/4085425-athletics-wallpapers.png');
background-repeat: no-repeat;
background-size: cover;
width: 100%;
height: 100%;
padding: 0 0 0 0;
margin: 0;
}
Note that all 3 of these elements are in separate .cshtml
files. Each element is a div
that contains all my content.
Here is my index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width">
<title>EastbayEvents</title>
<base href="/" />
<link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" />
<link href="css/site.css" rel="stylesheet" />
</head>
<body>
<app>Loading...</app>
<script type="blazor-boot"></script>
</body>
</html>
page1.cshtml
<div id="pagewrapperevent1">
//removed for brevity
</div>