Posted in sections
1046
3:33 am, March 29, 2022
 

html and css hoizontal simple timeline section in foundation

a horizontal simple timeline section example done in foundation grid with some custom styles.

This also uses the Lato Font quick install! So Quick!..  :P

Also works on responsive and mobile devices as it uses the grid and large-auto, so you can also add and remove items and it will resize. 

Here is a responsive demo, you can see how it stacks.

HTML

<section class="home-path-section">
	<div class='grid-container'>
		<div class="grid-x grid-padding-x">
			<div class="large-12 cell">
				<div class="home-path-title">My Timeline Title</div>
				<div class="home-path-text">A Nice Description of my Horizontal Timeline</div>
			</div>
		</div>

		<div class="grid-x">
			<div class="large-auto cell">
				<div class="home-path-box">
					<div class="home-path-line">
						<div class="home-path-dot">
						</div>
					</div>
					<div class="home-path-year">
						2022
					</div>
					<div class="home-path-box-text">
						I created this awesome timeline!
					</div>
				</div>
			</div>

			<div class="large-auto cell">
				<div class="home-path-box">
					<div class="home-path-line">
						<div class="home-path-dot">
						</div>
					</div>
					<div class="home-path-year">
						2021
					</div>
					<div class="home-path-box-text">
						Something else awesome happened,
					</div>
				</div>
			</div>

			<div class="large-auto cell">
				<div class="home-path-box">
					<div class="home-path-line">
						<div class="home-path-dot">
						</div>
					</div>
					<div class="home-path-year">
						2020
					</div>
					<div class="home-path-box-text">
						I was a few years younger then.
					</div>
				</div>
			</div>

			<div class="large-auto cell">
				<div class="home-path-box">
					<div class="home-path-line">
						<div class="home-path-dot">
						</div>
					</div>
					<div class="home-path-year">
						2019
					</div>
					<div class="home-path-box-text">
						I wish i had done more with my time
					</div>
				</div>
			</div>

			<div class="large-auto cell">
				<div class="home-path-box">
					<div class="home-path-line">
						<div class="home-path-dot">
						</div>
					</div>
					<div class="home-path-year">
						2018
					</div>
					<div class="home-path-box-text">
						Ah back in my day i added some text here
					</div>
				</div>
			</div>

		</div>
	</div>
</section>

CSS

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');
  .lato {
  font-family: 'Lato', sans-serif;
  }
  .home-path-section {
    padding:30px 0 50px 0;
  }
  .home-path-title {
    font-family: 'Lato', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 29px;
    text-align: left;
    color: #262626;
    margin-bottom:10px;
  }
  .home-path-text {
    font-family: 'Lato', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 156%;
    color: #393939;
    margin-bottom:20px;
  }
  .home-path-box {
    text-align:center;
  }
  .home-path-line {
    margin:10px 0 20px 0;
    border-bottom:2px solid #373030;
    position:relative;
  }
  .home-path-dot {
    height:10px;
    width:10px;
    display:inline-block;
    margin:0 auto;
    border-radius: 10px;
    background:#373030;
    position:relative;
    top:12px;
  }
  .home-path-year {
    font-family: 'Lato', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 137.5%;
    text-align: center;
    color: #E32636;
    margin-bottom:10px;
  }
  .home-path-box-text {
    font-family: 'Lato', sans-serif;
    font-style: normal;
    font-size: 16px;
    line-height: 137.5%;
    text-align: center;
    color: #373030;
  }

Scripts

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.7.4/css/foundation.min.css" />
My Timeline Title
A Nice Description of my Horizontal Timeline
2022
I created this awesome timeline!
2021
Something else awesome happened,
2020
I was a few years younger then.
2019
I wish i had done more with my time
2018
Ah back in my day i added some text here

View Statistics
This Week
180
This Month
1626
This Year
5493

No Items Found.

Add Comment
Type in a Nick Name here
 
Related Search Terms
Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

You could also follow me on twitter. I have a couple of youtube channels if you want to see some video related content. RuneScape 3, Minecraft and also a coding channel here Web Dev.

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote

Do you want to be right or happy? You can’t be both.

Suggests that in many situations - especially in relationships or arguments - insisting on being right can come at the cost of harmony or peace of mind. It implies that prioritizing your ego or the need to win an argument may damage relationships or personal contentment, whereas letting go of that need (even if you’re technically right) may lead to greater happiness.


Gerald Jampolsky
Random CSS Property

@charset

The @charset CSS at-rule specifies the character encoding used in the style sheet. It must be the first element in the style sheet and not be preceded by any character; as it is not a nested statement, it cannot be used inside conditional group at-rules. If several @charset at-rules are defined, only the first one is used, and it cannot be used inside a style attribute on an HTML element or inside the <style> element where the character set of the HTML page is relevant.
@charset css reference