Responsive felxbox timeline
How do I make an responsive felxbox timeline?
Enhanced the below forked pen, I used flex so there's no need to change the css if we have extra/less number of steps, and changed the code a bit.. What is a responsive felxbox timeline? How do you make a responsive felxbox timeline? This script and codes were developed by Nour Abusoud on 10 November 2022, Thursday.
Responsive felxbox timeline - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Responsive felxbox timeline </title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>My coding journey .. so far</h1>
<div class="steps-timeline"> <div class="step"> <div class="step-milestone"/></div> <span class="step-title"> 2013 <br> Computer engineering </span> <p class="step-description"> Studied computer engineering. </p> </div> <div class="step"> <div class="step-milestone"/></div> <span class="step-title"> 2013 <br> HTML/CSS/JS/jQuery </span> <p class="step-description"> In my internship, I worked at a copany as a frontend developer, self taught myself using "w3schools" </p> </div> <div class="step"> <div class="step-milestone"/></div> <span class="step-title"> 2013-2014 <br> PHP,MySql </span> <p class="step-description"> At the end of my internship program, I started learning php and mysql </p> </div> <div class="step"> <div class="step-milestone"/></div> <span class="step-title"> 2014 <br> Sass,Git </span> <p class="step-description"> After a year working as frontend/backend developer I started working in a new company & started working with Sass, git, it was the first time I work with a linux system </p> </div> <div class="step"> <div class="step-milestone"/></div> <span class="step-title"> 2015 <br> More PHP / MySql / Sass </span> <p class="step-description"> Worked as frontend mainly but helped building projects with both frontend/backend. </p> </div> <div class="step"> <div class="step-milestone"/></div> <span class="step-title"> 2016 <br> Zend framework </span> <p class="step-description"> Lhad to build a dashboard with zend, so I larned it and built the dashboard. </p> </div>
</div><!-- steps-timeline -->
</body>
</html>
Responsive felxbox timeline - Script Codes CSS Codes
body{ color: #666; font-family: Arial, sans-serif;
}
h1{ text-align: center;
}
/* Steps timeline*/
.steps-timeline { font-size: 14px; line-height: 16px;
}
.step-title,
.step-description { margin: 0; display: block; text-align: center;
}
.step-title{ font-size: 16px; line-height: 22px; font-weight: bold; margin-bottom: 10px;
}
.ste-description { overflow: hidden; line-height:20px;
}
.steps-timeline .step { outline: 1px dashed rgba(0, 128, 0, 0); margin-bottom: 20px;
}
.step-milestone{ display: block; width: 30px; height: 30px; background-color: #fff; border: 8px solid red; border-radius: 50%; margin: 15px auto; box-sizing: border-box;
}
@media screen and (max-width: 678px) { .steps-timeline { border-left: 2px solid #3498DB; margin-left: 25px; } .steps-timeline .step { margin-left: -25px; display: block; overflow: auto; } .step-milestone { float: left; margin-left: 10px; } .step-title,.step-description { text-align: left; margin-left: 60px; }
}
@media screen and (min-width: 678px) { .steps-timeline { border-top: 2px solid #3498DB; margin-top: 50px; margin-left: 10%; margin-right: 10%; display: -moz-box; display: -ms-flexbox; display: -moz-flex; display: -webkit-flex; display: flex; justify-content: space-between; } .steps-timeline .step { margin-top: -30px; -webkit-flex: 1; /* Safari 6.1+ */ -ms-flex: 1; /* IE 10 */ flex: 1; }
}
Developer | Nour Abusoud |
Username | nourabusoud |
Uploaded | November 10, 2022 |
Rating | 3 |
Size | 2,590 Kb |
Views | 14,168 |
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 |
CSS Bar Chart | 7,386 Kb |
CSS Only Dragonfly | 3,117 Kb |
CSS Only semi-circle pie chart | 6,417 Kb |
The Jealous Buttons | 4,289 Kb |
CSS Heart Loaders | 2,161 Kb |
Mistletoe | 4,972 Kb |
Simple CSS Snowflake | 1,667 Kb |
Macaroons | 2,690 Kb |
CSS only dynamic 2 slices pie charts | 5,319 Kb |
CSS Cupcake | 2,730 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 |
Scroll to top button | DominicFrancois | 3,743 Kb |
Lightning | Akm2 | 19,150 Kb |
Vanilla modal window | Jasonhowmans | 3,554 Kb |
Super Discount | Orrinward | 3,225 Kb |
Hard-Stop Gradients | Mackdoyle | 2,288 Kb |
Flexbox Test | Icutpeople | 2,486 Kb |
Transitioning application screens with semantically named classes | Djgrant | 3,697 Kb |
Button Option Group | Honchoman | 1,859 Kb |
Drag in vanilla js using dotval math instead of translate | Paulq | 2,662 Kb |
Dragonball Dragon Radar | DouglasGlover | 2,157 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!