JSFiddle - React, Tailwind, and code Playground

by QuadriMan

HTML

<!DOCTYPE html>
<html>
    <head>
        <title>Blog</title>
        <link rel="stylesheet" type="text/css" href="blogpoststyle.css" />
        <link rel="icon" href="favicon.ico" type="image/x-icon">
        <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    </head>
    <body>
        <div id="container">
            <div id="header">
                <h1>This is my Blog page.</h1>
            </div>
            <div id="content">
                <div id="contents">
                <div id="main">
                <div id="backbutton">
                    <a href="blog.php"><h5>&lt;Back</h5></a>
                </div>
                    <h2>Title</h2><br>
                    <h4>Posted By QuadriMan</h4>
                    <img src='0.jpg'>
                    <p>lwjdvbowjbvwbrobvuowbrwuofvrwuvrwbfvwiovuwbjvkjodbvowvbuwovbwov9ubwrv9ouwbvw9vubw9uwrouvbwruovbwrouvbt wlejfbowurbffo3v bofjv bo4bv 4ovbo4vbruvr39bu</p>
    </div>
                            </div>
                <div id ="alphafooter">
                <div id="footer">
            Copywright &copy; 2024 Cheap Associate
        </div>
                    </div>
        </div>
    </body>
</html>

CSS

body {
    background-image: url('beautiful-mountain-photo-l.jpg');
    background-size: cover;
    background-attachment: fixed;
    cursor: url('The Grape.gif'), auto;
    overflow: hidden;
    height: 100vh;
}
#container {
    margin-left: auto;
    margin-right: auto;
    width: auto;
}
#header {
    background-color: #E10033;
    text-align: center;
    border-radius: 8px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size:larger
}
#content {
    padding: 10px 0px 10px 0px;
    height: calc(100vh);
    overflow-y: auto;
    width: auto;
}
#contents {
    display: flex;
}
#main {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size:larger;
    background-color: #E10033;
    border-radius: 10px;
    max-width: 80%;
    max-height: 500%;
    margin: auto; 
    width: auto;
    margin-bottom: 10px;
}
#backbutton {
    font-size:larger;
    margin-left: 5%;
}
#backbutton :hover {
    background: none;
    text-decoration: underline;
}
#backbutton :active {
    color: rgb(123, 0, 0);
}
#main h2 {
    text-align: center;
    text-decoration: underline;
    font-weight: bold;
}
#main h4 {
    float: right;
    margin-right: 2.5%;
}
#main img {
    max-height: calc(50vh);
    max-width: calc(50vw);
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    border-radius: 8px;
    margin-top: 40px;
    height: auto;
}
#footer {
    clear: both;
    float: left;
    font-weight: bold;
    height: calc(20vh);
    border-radius: 2px;
}
#alphafooter {
    height: calc(20vh);
}
a {
    color: black;
    text-decoration: none;
}
#nav li {
    list-style-type:none;
}
h3 {
    padding: 0px 0px 0px 40px;
}
a :hover {
    background-color:#cc0030;
    border-radius: 8px;
}
a :active {
    color:#E10033;
    background-color: black;
    border-radius: 8px;
}
#nav a :hover {
    text-decoration: underline;
}
#nav a :active {
    text-decoration: underline;
}