I am trying to make the background image the full height of the device screen but, I keep running into a blocker and it only fills the screen above the text. I've been trying to be mindful of the fact that the background image also needs a lowered opacity and adding it to the body affects that?
How do I fix this issue?
{EDIT: I removed the center tag and moved the class of the image to get rid of the max-width. I am still having problems with the height.}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NASCAR Fan Email</title>
<style>
body {
Margin: 0;
padding: 0;
}
table {
border-spacing: 0;
}
td {
padding: 0;
}
img {
border: 0;
}
.webkit {
/* max-width: 900px; */
}
.outer {
Margin: 0 auto;
width: 100%;
/* max-width: 900px; */
border-spacing: 0;
font-family: 'sans-serif';
color: black;
}
.fanCouncil {
border-bottom: 8px solid;
border-image: linear-gradient(to right, #ffd659 30%, #e4002b 30%, #e4002b 30%, #e4002b 60%, #007ac2 40%, #007ac2 75%) 5;
}
.fanPhoto {
opacity: 0.4;
}
p {
line-height: 2.2;
max-width: 1200px;
font-size: 40px;
}
a {
font-size: 40px;
}
.photoText {
position: absolute;
top: 30%;
left: 25%;
}
/* p.entryText {
position: absolute;
top: 30%;
left: 25%;
}
.clickStart {
font-weight: bold;
text-transform: uppercase;
text-decoration: none;
position: absolute;
top: 63%;
left: 25%;
}
.unableText {
position: absolute;
top: 65%;
left: 25%;
}
.thankYou {
position: absolute;
top: 87%;
left: 25%;
} */
a.copyLink:visited {
color: rgb(99, 150, 194);
}
@media screen and (max-width: 600px) {
.fanHeader,
.fanPhoto {}
}
@media screen and (max-width: 600px) {}
</style>
</head>
<body>
<div class="webkit">
<table class="outer" align="center">
<tr>
<td>
<table width="100%" style="border-spacing: 0;">
<tr>
<td class="fanCouncil" style="background-color: white; padding: 60px; text-align: center;">
<img class="fanHeader" src="https://www.nascar.com/wp-content/uploads/sites/7/2022/01/07/NFC_Horiz_BlackRGB.png" alt="Fan Email" width="900"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="photoText">
<p class="entryText">Hello, <br> <br> We’d like to invite you to participate in a short survey about this past weekend’s races. This survey should take less than 5 minutes and will be open through Wednesday, August 25. We want to know what you think!</p>
<a href="http://www.nascarfancouncil.com/c/al/5YVqVGmxA5g98218UalK-
Bl/5bn1vdLmXO68WPcydpyM7J
" class="clickStart">Click here to Start</a>
<p style="line-height: 3;" class="unableText">If you are unable to click the link, please copy and past the full URL below into your browser: <br>
<a href="http://www.nascarfancouncil.com/c/al/5YVqVGmxA5g98218UalK-
Bl/5bn1vdLmXO68WPcydpyM7J" class="copyLink">http://www.nascarfancouncil.com/c/al/5YVqVGmxA5g98218UalK-
Bl/5bn1vdLmXO68WPcydpyM7J</a>
</p>
<p class="thankYou">Thank you! <br>Fan Council</p>
</tr>
<tr>
<td>
<table width="100%" style="border-spacing: 0;">
<img class="fanPhoto" src="https://www.nascar.com/wp-content/uploads/sites/7/2022/01/07/NASCAR_FanCouncil_DaytonaFanPhoto_1-1.jpg">
</table>
</td>
</tr>
</table>
</div>
</body>
</html>