Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <link href="https://fonts.googleapis.com/css?family=Julius+Sans+One|Poiret+One&display=swap&subset=cyrillic,latin-ext" rel="stylesheet">

<div class="content">

	<div id="title-wrapper">
		<h1 id="title">Delivery service Survey form</h1>

	</div>

	<main>

		<form action="" id="survey-form">
			<p id="description">Help us to take the best decision for our service</p>
			<!--  Name Email Age -->
			<div class="align-left">
				<label for="name" id="name-label">*Name:</label>
				<input type="text" name="name" id="name" required placeholder="Enter Your name">
			</div>

			<br>
			<div class="align-left">
				<label for="email" id="email-label" class="right">*Email:</label>
				<input type="email" name="email" id="email" required placeholder="Enter your email">

			</div>
			<br>

			<div class="align-left">

				<label for="number" id="number-label">*Age:</label>
				<input type="number" name="number" id="number" min="14" max="100" required placeholder="Age" class="right">
			</div>

			<br>

			<!-- End of :  Name Email Age -->

			<div class="align-left">
				<label for="dropdown" class="left">Choose a delivery type you like:</label>
				<select name="delivery-type" id="dropdown" class="right">
       <option value="user-prefrence">One day delivery(50$)</option>
       <option value="user-prefrence">Ultra-fast delivery(20$)</option>
       <option value="user-prefrence">Free delivery</option>
				</select>
			</div>

			<br>

			<div class="align-left">
				<label for="rating" class="left">How satisfied are you:</label>

				<div class="radio-btn-wrapper">

					<input type="radio" name="rating" value="one"><span>1</span>

					<input type="radio" name="rating" value="two"><span>2</span>

					<input type="radio" name="rating" value="three"><span>3</span>

					<input type="radio" name="rating" value="four"><span>4</span>

					<input type="radio" name="rating" value="five"><span>5</span>
				</div>
			</div>

			<br>

			<div class="align-left">

				<label for="feedback">How likely are you to pay for timed delivery:</label>
				<div class="chkbx-btn-wrapper">

					<span>	<input type="checkbox" name="feedback" value="very-likely"><span>very-likely</span></span>
					<span>	<input type="checkbox" name="feedback" value="not-sure"><span>Not-sure</span></span>
					<span>	<input type="checkbox" name="feedback" value="i dont think so"><span>I dont think i will</span> </span>
					
				</div>

			</div>

			<br>

			<div id="comment-wrapper">
				<textarea name="comment" id="comment" cols="40" rows="5" placeholder="Please enter your comment..."></textarea></div>

			<button id="submit">Submit</button>

		</form>
	</main>
</div>
              
            
!

CSS

              
                * {
	/* 	 	border: 2px solid black; */
	padding: 0;
	margin: 0;
	
}

:root {
	--main-bg-clr: #262626;
	--secondary-bg-clr: #ffffff;
	--text-form-clr: #ffec60;
	--form-fnt: "Poiret One", cursive;
	
}

.content {
	background: var(--main-bg-clr);
	width: auto;
	height: 1000px;

}
main {
	min-width: 300px;
	width: 900px;
	height: 799px;
	margin: auto;
	text-align: center;
	border-radius: 10px;
	background-color: #ffffff;
	background-image: url("https://www.transparenttextures.com/patterns/always-grey.png");
	box-sizing: border-box;
}

#title-wrapper {
	background: linear-gradient(
		to bottom,
		var(--secondary-bg-clr) 30%,
		var(--main-bg-clr)
	);
	background-color: #ffffff;
	background-image: url("https://www.transparenttextures.com/patterns/always-grey.png");
	/* This is mostly intended for prototyping; please download the pattern and re-host for production environments. Thank you! */
	padding: 20px;
	text-align: center;
}

/* ----Header area ---- */

#title-wrapper h1 {
	font-family: "Righteous", cursive;
	font-weight: lighter;
	font-size: 2.5rem;
	text-decoration: underline black dashed;
}

#description {
	display: flex;
	justify-content: flex-start;
	display: inline-block;

	margin-top: 30px;
	margin-bottom: 30px;
	font-size: 1.2rem;
	font-family: var(--form-fnt);
	font-weight: bold;
}

/* label start */

form {
	/* 	border: 2px solid black; */
	margin: 50px auto;
}

span {
	display: inline-block;
	margin-left: 5px;
	font-family: "Julius Sans One", sans-serif;
}

span::first-letter {
	text-transform: uppercase;
}

.align-left {
	display: flex;
	flex-direction: row;
	margin: 5px;
}

label {
	width: 45%;
	text-align: right;
	margin-right: 10px;

	padding: 5px;
	font-family: "Julius Sans One", sans-serif;

	color: black;
	display: flex;
	align-items: center;
	justify-content: flex-end;

	transition-duration: 500ms;
}

#dropdown {
	font-family: "Julius Sans One", sans-serif;
	font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="number"],
select {
	width: 250px;
	border-radius: 3px;
	padding: 10px 10px;
	margin: 15px 0px;
	box-sizing: border-box;
	border: none;
	border: 1px silver solid;
	transition-duration: 500ms;
	text-transform: uppercase;
}

/* Text-Focus-Changes-when-clicked  */

*:focus {
	outline-style: dashed;
	outline-color: black;
	outline-width: 1px;
	box-shadow: 10px black;
}

/* <><><><><><>< Comment box ><><><><><><>  */

#comment-wrapper {
	margin-top: 5px;
}

#comment {
	width: auto;
	border: 0.5px silver solid;
	font-family: "Julius Sans One", sans-serif;
	border-radius: 5px;
	padding: 10px;
	border: 1px silver solid;
}
#comment:focus {
	box-shadow: -10px 5px 10px #aaaaaa;
}

/* ><>><<><><>< Submit-button ><>><><<<>< */

#submit {
	font-family: "Julius Sans One", sans-serif;
	margin-top: 10px;
	border: 0.5px silver solid;
	padding: 10px 15px;
	border-radius: 5px;
	background: linear-gradient(to right, #ededed 60%, #d6d6d6 100%);
	transition-duration: 500ms;
}
#submit:hover {
	border-radius: 10px;
	background: linear-gradient(to left, #666666 20%, #d1d1d1 100%);
	color: white;
	box-shadow: 0px 10px 5px #aaaaaa;
}

/* Media-Query */
/* Media-Query */
/* Media-Query */
/* Media-Query */


@media (max-width: 950px) {
	
	
	
	.content {
	background: var(--main-bg-clr);
	width: auto;
	height: 1050px;
		padding: 15px;

}
	
	#title-wrapper {
		 
	 
		display: none;
	}

	main {
		width: 95%;
		height: auto;
		padding: 0 30px 20px;
		border-radius: 0;
	}

	#title-wrapper h1 {
		display: none;
	}

	input[type="text"],
	input[type="email"],
	input[type="number"],
	select {
		width: 100%;
	}

	label {
		width: 100%;
		text-align: left;
		margin-right: 5px;
		 
		padding: 0px;
		font-family: "Julius Sans One", sans-serif;

		color: black;
		display: flex;
		/* 	align-items: center; */

		justify-content: flex-start;
	}

	.align-left {
		flex-direction: column;
	}

	.radio-btn-wrapper {
		text-align: left;
		margin-left: 5px;
		padding: 10px 0 0;
	}

	.chkbx-btn-wrapper {
		text-align: left;
		margin-left: 5px;
		padding: 10px 0 0;
		display: flex;
		flex-direction: column;
	}

	input[type="checkbox"] {
		margin-right: 2px;
		width: 20px;
		height: 18px;
	}
	
	#comment {
		width: 50%;
	}
}


@media (max-width: 530px){
		.content {
	 
	height: 100%;
	 

}
}
              
            
!

JS

              
                
              
            
!
999px

Console