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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Details

Privacy

Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO

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.

Template

Make Template?

Templates are Pens that can be used to start other Pens. You can view all of your templates, or learn more in the documentation.

Screenshot

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO

HTML

              
                <!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	
	<link rel="stylesheet" href="css/style.css">
	<link rel="stylesheet" href="css/bootstrap.min.css">
	<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
	<link href="https://fonts.googleapis.com/css?family=Poppins&display=swap" rel="stylesheet">
	<title>Education</title>
</head>
<body>
<section class="order">
    	<div class="container">
    		<div class="row">
    			<div class="col-lg-6">
    				<div class="order__item">
    			    <div class="caption d-flex">
    				    <h5 class="caption__order white">Express</h5>
    				    
    				</div>
    				<div class="list__order">
                    <section class="item-list">
		                <input type="checkbox" id='one' class="check-btn">
		                <div class="btn__list">
			                <p>Track your shipment</p>
			                <label for="one" class="radio">></label>
		                </div>
	                    <div class='content active-item-list'>
		                    <h5 class="caption__list">Internacional services to Anther Country</h5>
		                    <ul>
			                    <li><span class="icons"><i class="fa fa-caret-right"></i></span>Emergency</li>
			                    <li><span class="icons"><i class="fa fa-caret-right"></i></span>Time Critical</li>
			                    <li><span class="icons"><i class="fa fa-caret-right"></i></span>Less Urgent</li>
		                    </ul>
	                    </div>

	                </section>
	                <section class="item-list">
		                <input type="checkbox" id='two' class="check-btn">
		                <div class="btn__list">
			                <p>New login</p>
			                <label for="two" class="radio">></label>
		                </div>
	                    <div class='content active-item-list'>
		                <h5 class="caption__list">Internacional services to Anther Country</h5>
		                <ul>
			                <li><span class="icons"><i class="fa fa-caret-right"></i></span>Emergency</li>
			                <li><span class="icons"><i class="fa fa-caret-right"></i></span>Time Critical</li>
			                <li><span class="icons"><i class="fa fa-caret-right"></i></span>Less Urgent</li>
		                </ul>
	                    </div>

	                </section>	
	                <section class="item-list">
		                <input type="checkbox" id='three' class="check-btn">
		                <div class="btn__list">
			                <p>Find Dhl point</p>
			                <label for="three" class="radio">></label>
		                </div>
	                    <div class='content active-item-list'>
		                <h5 class="caption__list">Internacional services to Anther Country</h5>
		                <ul>
			                <li><span class="icons"><i class="fa fa-caret-right"></i></span>Emergency</li>
			                <li><span class="icons"><i class="fa fa-caret-right"></i></span>Time Critical</li>
			                <li><span class="icons"><i class="fa fa-caret-right"></i></span>Less Urgent</li>
		                </ul>
	                    </div>

	                </section>	
	                <section class="item-list">
		                <input type="checkbox" id='four' class="check-btn">
		                <div class="btn__list">
			                <p>Find a service</p>
			                <label for="four" class="radio">></label>
		                </div>
	                    <div class='content active-item-list'>
		                    <h5 class="caption__list">Internacional services to Anther Country</h5>
		                    <ul>
			                    <li><span class="icons"><i class="fa fa-caret-right"></i></span>Emergency</li>
			                    <li><span class="icons"><i class="fa fa-caret-right"></i></span>Time Critical</li>
			                    <li><span class="icons"><i class="fa fa-caret-right"></i></span>Less Urgent</li>
		                    </ul>
	                    </div>

	                </section> 
	                </div> 
	                </div>         
          </div>
    		</div>
    	</div>
    </section>
</body>
  
</html>
              
            
!

CSS

              
                /*Стили для выпадающих списков*/

.order{
	width: 50%;
}

.order__item{
	background: #ba0000;
	min-height: 400px;

}

.list__order{
	padding-top: 40px;
}

.caption{

}

.caption__order{
	font-size: 14px;
	padding-top: 12px;
	margin-left: 112px;
	cursor: pointer;
}


.item-list{
	overflow: hidden;
	padding-top: 10px;
	transition: .5s;
}

.btn__list{
	display: flex;
	position: relative;
	color: #fff;
	max-width: 440px;
	border: 1px solid #fff;
	margin-left: 20px;
}

.btn__list2{
	width: 210px;
	margin-left: 0;
}

.btn__list p{
	width: 100%;
    padding-left: 20px;
	margin-top: 15px;
	background: rgba(0,0,0,0);
	text-transform: uppercase;
	font-size: 14px;
	font-weight: 500;
	color: #eed0d0;
}

.radio{
	position: absolute;
	left: 385px;
	min-height: 52px;
	margin-left: 2px;
	padding: 10px 20px;
	background: rgba(0,0,0,0);
	border: 1px solid #fff;
	cursor: pointer;
	color: #eed0d0;
}

.radio2{
	left: 154px;
}

.caption__list{
	padding: 10px;
	color: #fff;
	font-size: 16px;
	font-weight: 400;
	margin-left: 30px;
}
	
.content ul li{
	list-style: none;
	margin: 10px;
	margin-left: 50px;
	color: #fff;
}

.check-btn{
	display: none;
}

.content{
	height: 0;
	transition: 1s;
}
	
.check-btn:checked ~ .active-item-list{
    height: 165px;
	transition: 1s;
} 

.check-btn:checked ~ .active-item-list,
.check-btn:checked ~ .btn__list {
  background: magenta;
}

              
            
!

JS

              
                // document.querySelectorAll('.radio').forEach(function(element){
// 	element.onclick = bgChange;
// });

// let timer = 0;

// function bgChange(){
// 	let btnlist = document.querySelectorAll('.btn__list');
// 	timer++;
//     if(timer%2 == 0){
//     	for(let i = 0; i < btnlist.length; i++){
    		
//     	        btnlist.style.color = '#ffffff';
    		
//         }
//     }
//     else if(timer%2 != 0){
//         for(let i = 0; i < btnlist.length; i++){
    
//     	        btnlist[i].style.background = '#ffcc00';
            
//         }

//         let change = document.querySelectorAll('.btn__list p');
//   	    for(let i = 0; i < change.length; i++){
  	    	
// 		        change[i].style.color = '#ba0000';
	        
// 	    }
//     }

//     document.querySelector('.red').style.maxHeight = 'none';
// 	document.querySelector('.red').style.minHeight = '340px';
// }

              
            
!
999px
How would you React if I said I love Vue?

Console