I'm looking to display the image attached above a table with some transparency. The challenge I'm facing in my current code is that the image is appearing below the table instead of across it. Additionally, I need the image to be wrapped in a div or similar container with transparent properties that cover the entire table.
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
* {
box-sizing: border-box;
}
body {
font-family: Arial;
font-size: 17px;
}
.container {
position: absolute;
max-width: 400px;
}
.container img {vertical-align: middle;}
.container .content {
position: relative;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: rgb(0, 0, 0); /* Fallback color */
background: rgba(255, 255, 255, 0.5); /* Black background with 0.5 opacity */
font-size: 50px;
text-align: center;
font-style: italic;
padding: 40px;
padding-top: 180px;
color: grey;
/* Rotate div */
-ms-transform: rotate(-25deg); /* IE 9 */
-webkit-transform: rotate(-25deg); /* Chrome, Safari, Opera */
transform: rotate(-25deg);
}
</style>
</head>
<body>
<h2>Responsive Image with Transparent Text</h2>
<div class="container">
<TABLE width="800px">
<TR>
<TD>Test</TD>
<TD>Test</TD>
<TD>Test</TD>
</TR>
<TR>
<TD>Test</TD>
<TD>Test</TD>
<TD>Test</TD>
</TR>
<TR>
<TD>Test</TD>
<TD>Test</TD>
<TD>Test</TD>
</TR>
<TR>
<TD>Test</TD>
<TD>Test</TD>
<TD>Test</TD>
</TR>
<TR>
<TD>Test</TD>
<TD>Test</TD>
<TD>Test</TD>
</TR>
</TABLE>
<div class="content">
<IMG SRC="ComingSoon.png" WIDTH="548" HEIGHT="53" BORDER="0" ALT="">
</div>
</div>
</body>
</html>