Computer Monitor Shape - Using Html and CSS

Hello friends, today we will be going to how do we Create Computer Monitor Shape - Using Html and CSS. I have posted many videos and articles before related to the JavaScript project, now this the something new that we are going to build.

Video Tutorial of Computer Monitor Shape - Using Html and CSS


As you have seen on the given video tutorial of  Computer Monitor Shape - Using Html and CSS, 

If you are feeling bored watching the given video tutorial of Computer Monitor Shape - Using Html and CSS then you can copy or download the given codes below:


Computer Monitor Shape - Using Html and CSS | Free Source Code

To create this program (Computer Monitor Shape - Using Html and CSS). First, you need to create two Files one HTML File and another one is CSS File. After creating these files just paste the following codes in your file.

In the first place, make a HTML document with the name of index.html and glue the given codes in your HTML record. Keep in mind, you've to make a document with .html extension.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Computer Monitor Shape - Using Html, CSS</title>
    <link rel="stylesheet" href="style.css">

    <!-- Created By S-Tech04 -->

</head>
<body>
    <div class="container">
        <div class="monitor">
            <img class="monitorImage" src="./monitor.png">
            <iframe class="video" src="https://www.youtube.com/embed/zO6zgt-C-vQ" allowfullscreen="" ></iframe>
            <svg width="252px" height="155px" viewBox="0 0 252 155" class="svg">
                <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                    <g fill="#F2BB13">
                        <polygon points="87 0 252 93.013245 252 148 0 2.78561896e-14"></polygon>
                    </g>
                    <text transform="translate(147.575025, 59.538378) rotate(32.000000) translate(-147.575025, -59.538378) " font-family="OpenSans-Bold, Open Sans" font-size="30" font-weight="bold" fill="#454C55">
                        <tspan x="100.000000" y="70.0000000">S-Tech04</tspan>
                    </text>
                    <polygon fill="#AD8200" points="243 142 243 155 252 148"></polygon>
                    <polygon fill="#AD8200" points="0 6 0 0 9 6"></polygon>
                </g>
            </svg>
        </div>
    </div>
</body>
</html>
Second, make a CSS record with the name of style.css and glue the given codes in your CSS document. Keep in mind, you've to make a record with .css extension.
*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body
{
    font-family: 'Open Sans', 'Lato', 'sans-serif';
    background: #333;
}
.container
{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    height: 100vh;
    width: 100%;
}
.monitor {
    width: 660px;
    height: 550px;
    position: relative;
    flex-shrink: 0;
    margin: 20px;
}
.monitor .monitorImage{
    width: 100%;
}

.video {
    top: 5.7%;
    left: 4.9%;
    width: 90.8%;
    border: 0;
    height: 62%;
    z-index: 1;
    position: absolute;
}

.svg {
    top: -12px;
    right: -2px;
    width: 204px;
    z-index: 1;
    position: absolute;
}
That’s all, now you’ve successfully created a program to Computer Monitor Shape - Using Html and CSS. If your code doesn’t work or you’ve faced any error/problem, please download the source code files from the given download button. It’s free and a .zip file will be downloaded then you’ve to extract it.
Click on the following download button to download all source code files.


Download Now
Please Wait...
Direct Link click here.

How can I help you

Post a Comment

How can I help you

Post a Comment (0)

Previous Post Next Post