Flexbox - one-line form
How do I make an flexbox - one-line form?
What is a flexbox - one-line form? How do you make a flexbox - one-line form? This script and codes were developed by Tryggvi Gylfason on 15 October 2022, Saturday.
Flexbox - one-line form - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Flexbox - one-line form</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <html>
<body> <div class="vid-container"> <video class="dog" src="https://s3-us-west-2.amazonaws.com/coverr/mp4/Coverr-Lulu.mp4" autoplay loop></video> </div> <div class="cover"> <form class="flex-form"> <input type="search" placeholder="Where do you want to go?"> <label for="from">From</label> <input type="date" name="from"> <label for="from">To</label> <input type="date" name="to"> <select name="" id=""> <option value="1">1 Guest</option> <option value="2">2 Guest</option> <option value="3">3 Guest</option> <option value="4">4 Guest</option> <option value="5">5 Guest</option> </select> <input type="submit" value="Search"> </form> </div>
</body>
</html>
</body>
</html>
Flexbox - one-line form - Script Codes CSS Codes
/* Some CSS Setup - nothing to do with flexbox */
html { box-sizing: border-box;
}
*, *:before, *:after { box-sizing: inherit;
}
body { font-family: sans-serif; margin: 0; overflow: hidden; background-image: linear-gradient(260deg, #2376ae 0%, #c16ecf 100%);
}
a { color: white;
}
.cover { height: 100vh; width: 100%;
}
/*Video*/
.dog { height: 100%; width: 100%; -webkit-filter: blur(5px); filter: blur(5px); position: absolute; top: 0; z-index: -1;
}
/*Hack to get them to align properly */
.flex-form > *:not([type="date"]) { border-top: 1px solid white; border-bottom: 1px solid white;
}
.flex-form input[type="submit"] { background: #FF5A5F; border-top: 1px solid #FF5A5F; border-bottom: 1px solid #FF5A5F; color: white;
}
.flex-form > * { border: 0; padding: 10px; background: white; line-height: 50px; font-size: 20px; border-radius: 0; outline: 0; border-right: 1px solid rgba(0, 0, 0, 0.2); -webkit-appearance: none;
}
.flex-form > *:last-child { border-right: 0;
}
/*Flexbox Starts Here*/
.cover { display: flex; justify-content: center; align-items: center;
}
.flex-form { display: flex; border: 20px solid rgba(0, 0, 0, 0.3); border-radius: 5px;
}
input[type="search"] { flex-basis: 350px;
}
Developer | Tryggvi Gylfason |
Username | tryggvigy |
Uploaded | October 15, 2022 |
Rating | 3 |
Size | 3,021 Kb |
Views | 28,336 |
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!
Name | Size |
ImmutableJS Object as key | 1,464 Kb |
Macintosh 128k - Terminal | 4,994 Kb |
A Pen by Tryggvi Gylfason | 3,407 Kb |
Image inside HTML | 1,759 Kb |
CSS embedding | 1,527 Kb |
Flexbox - mobile app layout | 3,780 Kb |
P R E S S E D | 2,047 Kb |
Redux - applyMiddleware | 3,960 Kb |
Redux - Template | 3,669 Kb |
Icelandic characters | 1,216 Kb |
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!
Name | Username | Size |
A Pen by Alex Bergin | Abergin | 3,347 Kb |
DevCamp 2014 - Denver Public Library | See8ch | 5,033 Kb |
Flower expansion | Sreucherand | 3,425 Kb |
Process Accordion | Devilskitchen | 31,432 Kb |
Plotting Points with D3.js | Laurakelly | 31,996 Kb |
Canvas snow | Win7killer | 2,572 Kb |
Multiple jCarousel | Pafnuty | 2,461 Kb |
Client-side Email Validation | Collizo4sky | 1,538 Kb |
Minimal Material Design Form Input | Koenigsegg1 | 3,076 Kb |
Css Rotating 3d cubes different speed | Dghez | 2,364 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!