Welcome screen using flexbox and viewport units

Size
2,404 Kb
Views
28,336

How do I make an welcome screen using flexbox and viewport units?

What is a welcome screen using flexbox and viewport units? How do you make a welcome screen using flexbox and viewport units? This script and codes were developed by Drew McConville on 31 August 2022, Wednesday.

Welcome screen using flexbox and viewport units Previews

Welcome screen using flexbox and viewport units - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Welcome screen using flexbox and viewport units</title> <script src="https://use.typekit.net/xnd4ssj.js"></script>
<script>try{Typekit.load({ async: true });}catch(e){}</script>
<meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="flex-container"> <section id="welcome"> <h1>Fun with the modern CSS layout.</h1> </section>
</div>
</body>
</html>

Welcome screen using flexbox and viewport units - Script Codes CSS Codes

.container { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; padding: 20px;
}
#welcome { margin: 10vh; background-color: #eaeaea; border: 1px solid #ececec; height: 80vh; border-radius: 10px; background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/78060/istock-car.jpg"); background-repeat: no-repeat; background-size: 45vw; background-position: 100% 50%; position: relative;
}
h1 { font-family: "futura-pt"; position: absolute; font-weight: 800; font-size: 6vw; width: 40%; margin: 0; line-height: 1; top: 50%; color: #333; left: 5%; -webkit-transform: translate(0, -55%); transform: translate(0, -55%);
}
p { margin: 0;
}
Welcome screen using flexbox and viewport units - Script Codes
Welcome screen using flexbox and viewport units - Script Codes
Home Page Home
Developer Drew McConville
Username drew_mc
Uploaded August 31, 2022
Rating 3
Size 2,404 Kb
Views 28,336
Do you need developer help for Welcome screen using flexbox and viewport units?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Drew McConville (drew_mc) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!