I am trying to move my images up to fit within the red lines of the sections i made with css. I just can't seem to figure out how to do it.
my HTML:
<!-- Your code goes here -->
<div class="container">
<section class="left">
<h1>Photo Gallery</h1>
<article>
<h4>World Capitals</h4>
<p>A capital city is a city or town, specified by law or constitution, by the government of a country, or
part of a country, such as a state, province, or county. It generally serves as the location of the government's central meeting
place and offices. Most of the country's leaders and officials work in the capital city</p>
</article>
<article class="divider">
<h4>Thailand</h4>
<figure>
<figcaption>
Bangkok
</figcaption>
<img src="Bangkok.jpg" alt="Capital of Thailand" title="Bangkok" />
</figure>
<p>
Thailand is a country on Southeast Asia’s Indochina peninsula known for tropical beaches, opulent royal palaces,
ancient ruins and ornate temples displaying figures of Buddha, a revered symbol. In Bangkok, the capital, an
ultramodern cityscape rises next to quiet canal and riverside communities.
Commercial hubs such as Chinatown consist of labyrinthine alleys crammed with shophouses, markets and diners.
</p>
</article>
<article class="divider">
<h4>Egypt</h4>
<figure>
<figcaption>
Cairo
</figcaption>
<img src="Cairo.jpg" alt="Capital of Egypt" title="Cairo" />
</figure>
<p>
Egypt, a country linking northeast Africa with the Middle East, dates to the time of the pharaohs.
Millennia-old monuments still sit along the fertile Nile River Valley, including the colossal Pyramids and Sphinx at
Giza and the hieroglyph-lined Karnak Temple and Valley of the Kings tombs in Luxor.
</p>
Top
</article>
CSS used:
section {
margin-left: 150px;
border: 3px solid red;
}
.divider {
border-top: 3px solid red;
}
img{
float: right;
margin: auto;
}
I just want the images to appear within their own article sections and not in the middle of the lines I have separating them. Any help would be wonderful! thanks!
I think you're going for something like this :
section {
margin-left: 150px;
border: 3px solid red;
}
.divider {
border-top: 3px solid red;
}
.divider:before,
.divider:after {
content: " ";
display: table;
}
.divider:after {
clear: both;
}
figure, img {
float: right;
margin: auto;
width: 100%;
}
h1, h4, p, a, figure {
margin: 10px;
}
figure {
max-width: 50%;
margin-top: -20px;
}
<div class="container">
<section class="left">
<h1>Photo Gallery</h1>
<article>
<h4>World Capitals</h4>
<p>
A capital city is a city or town, specified by law or constitution,
by the government of a country, or part of a country, such as a state,
province, or county. It generally serves as the location of the
government's central meeting place and offices. Most of the country's
leaders and officials work in the capital city
</p>
</article>
<article class="divider">
<h4>Thailand</h4>
<figure>
<figcaption>Bangkok</figcaption>
<img src="http://www.seriouseats.com/images/2012/10/20121015-226179-best-dishes-thailand-bangkok.jpg" alt="Capital of Thailand" title="Bangkok" />
</figure>
<p>
Thailand is a country on Southeast Asia’s Indochina peninsula
known for tropical beaches, opulent royal palaces, ancient ruins and
ornate temples displaying figures of Buddha, a revered symbol. In
Bangkok, the capital, an ultramodern cityscape rises next to quiet
canal and riverside communities. Commercial hubs such as Chinatown
consist of labyrinthine alleys crammed with shophouses, markets and
diners.
</p>
</article>
<article class="divider">
<h4>Egypt</h4>
<figure>
<figcaption>Cairo</figcaption>
<img src="http://cdn.ek.aero/english/images/Cairo_tcm233-2363745.jpg" alt="Capital of Egypt" title="Cairo" />
</figure>
<p>
Egypt, a country linking northeast Africa with the Middle East, dates
to the time of the pharaohs. Millennia-old monuments still sit along
the fertile Nile River Valley, including the colossal Pyramids and
Sphinx at Giza and the hieroglyph-lined Karnak Temple and Valley of
the Kings tombs in Luxor.
</p>
Top
</article>
</section>
</div>
(see also this Fiddle)
Related
I'm trying to make a little indie game site, and I'd like to make the section of each entry that contains the title and tags of the game a lighter green than the portion holding the description and picture.
body {
margin: 0;
padding-top: 150;
padding-bottom: 0;
}
.fixed-header {
width: 100%;
position: fixed;
background: #75b478;
color: black;
text-align: center;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-size: large;
top: 0;
z-index: 1;
margin: 0;
}
.container {
width: 100%;
background-color: #589c5b;
overflow: auto;
margin: 0;
}
nav a {
color: rgb(255, 255, 255);
text-decoration: none;
padding: 5px 35px 10px;
display: inline-block;
width: 20%;
height: 25px;
line-height: 25px;
margin: 0;
}
a:link, a:visited, a:hover, a:active {
text-decoration: none;
color: rgb(255, 255, 255);
}
article {
background-color: #67aa69;
text-align: center;
width: 30%;
padding: 2;
position: relative;
border-radius: 10%;
}
.section {
text-align: center;
margin-top: 50px;
font-family: 'Andika', sans-serif;
}
.tags {
font-style: italic;
font-family: 'Source Sans Pro', sans-serif;
}
.games {
display: flex;
flex-direction: row;
justify-content: space-evenly;
margin-top: 50px;
margin-bottom: 50px;
}
img {
width: 100%;
height: 250px;
border-radius: 15%;
}
p {
font-family: 'Lato', sans-serif;
}
h2 {
padding-left: 2px;
padding-right: 2px;
}
<DOCTYPE! html>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<html lang="en-US">
<head>
<link rel="stylesheet" href="page.css">
<title>Indie Games List</title>
<link href="https://fonts.googleapis.com/css2?family=Lato&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital#1&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Andika:wght#700&display=swap" rel="stylesheet">
</head>
<body>
<div class="fixed-header">
<h1>Indie Games</h1>
<div class="container">
<nav>
To Play
Reviews
Indie-x
Favorites
</nav>
</div>
</div>
<h1 class="section" id="platformers">Platformers</h1>
<div class="games">
<article>
<h2>Hollow Knight</h2>
<p class="tags">Difficult, Souls-like</p>
<hr>
<p>"Forge your own path in Hollow Knight! An epic action adventure through a vast ruined kingdom of insects and heroes. Explore twisting caverns, battle tainted creatures and befriend bizarre bugs, all in a classic, hand-drawn 2D style."</p>
<img src="hollow-knight.png">
</article>
<article>
<h2>Celeste</h2>
<p class="tags">Difficult, Amazing Soundtrack</p>
<hr>
<p>"Help Madeline survive her inner demons on her journey to the top of Celeste Mountain, in this super-tight platformer from the creators of TowerFall. Brave hundreds of hand-crafted challenges, uncover devious secrets, and piece together the mystery of the mountain."</p>
<img src="celeste.png">
</article>
<article>
<h2>Ori and the Blind Forest/Will of the Wisps</h2>
<p class="tags">Amazing Soundtrack, Metroidvania</p>
<hr>
<p>"Ori and the Blind Forest tells the tale of a young orphan destined for heroics, through a visually stunning action-platformer crafted by Moon Studios for PC."</p>
<img src="ori.png">
</article>
</div>
<div class="games">
<article>
<h2>Cuphead</h2>
<p class="tags">Difficult, Hand-Drawn</p>
<hr>
<p>"Cuphead is a classic run and gun action game heavily focused on boss battles. Inspired by cartoons of the 1930s, the visuals and audio are painstakingly created with the same techniques of the era, i.e. traditional hand drawn cel animation, watercolor backgrounds, and original jazz recordings."</p>
<img src="cuphead.png">
</article>
</div>
<hr>
<h1 class="section" id="horror">Horror</h1>
<div class="games">
<article>
<h2>Omori</h2>
<p class="tags">Psychological Horror, RPG, Amazing Soundtrack</p>
<hr>
<p>"Explore a strange world full of colorful friends and foes. When the time comes, the path you’ve chosen will determine your fate... and perhaps the fate of others as well."</p>
<img src="omori.png">
</article>
<article>
<h2>Needy Streamer Overload</h2>
<p class="tags">Psychological Horror, Visual Novel, Streaming</p>
<hr>
<p>"NEEDY STREAMER OVERLOAD is a “multi-ending ADV” depicting daily life with “OMGkawaiiAngel”, a young girl with a rather extreme need for approval attempting to become the #1 “Internet Angel” (streamer)."</p>
<img src="nso.png">
</article>
<article>
<h2>Little Nightmares 1 & 2</h2>
<p class="tags">Psychological Horror, Platformer, Puzzle</p>
<hr>
<p>"Immerse yourself in Little Nightmares, a dark whimsical tale that will confront you with your childhood fears! Help Six escape The Maw – a vast, mysterious vessel inhabited by corrupted souls looking for their next meal."</p>
<img src="ln.png">
</article>
</div>
<div class="games">
<article>
<h2>Sally Face</h2>
<p class="tags">Psychological Horror, Hand-Drawn, Mystery</p>
<hr>
<p>"Delve into a dark adventure following the boy with a prosthetic face and a tragic past. Unravel the sinister mysteries of Sally's world to find the truth that lies hidden beneath the shadows."</p>
<img src="sallyface.png">
</article>
<article>
<h2>FAITH: The Unholy Trinity</h2>
<p class="tags">Psychological Horror, Retro, Supernatural</p>
<hr>
<p>"What you are about to do has not been approved by the Vatican. As a young priest, struggle against demons, insane cultists, and your own weakening faith in this pixel horror game inspired by the era of classic 8-bit gaming and the "Satanic Scare" of the 1980s."</p>
<img src="faith.png">
</article>
<article>
<h2>Carrion</h2>
<p class="tags">Psychological Horror, Villain Protagonist, Lovecraftian</p>
<hr>
<p>"CARRION is a reverse horror game in which you assume the role of an amorphous creature of unknown origins, stalking and consuming those that imprisoned you."</p>
<img src="carrion.png">
</article>
</div>
<div class="games">
<article>
<h2>Milk inside a bag of milk inside a bag of milk</h2>
<p class="tags">Psychological Horror, Psychedelic, Visual Novel</p>
<hr>
<p>"A short story about what sort of challenges everyday little things can be. Help the girl buy milk, be the first not to disappoint her."</p>
<img src="milk.png">
</article>
<article>
<h2>Iron Lung</h2>
<p class="tags">Psychological Horror, Underwater, Walking Simulator</p>
<hr>
<p>"A short horror game where you pilot a tiny submarine through an ocean of blood on an alien moon."</p>
<img src="ironlung.png">
</article>
<article>
<h2>Madison</h2>
<p class="tags">Psychological Horror, Supernatural, Exploration</p>
<hr>
<p>"MADiSON is a first person psychological horror game that delivers an immersive and terrifying experience. With the help of an instant camera, connect the human world with the beyond, take pictures and develop them by yourself. Solve puzzles, explore your surroundings and most importantly, survive."</p>
<img src="madison.png">
</article>
</div>
<div class="games">
<article>
<h2>Bendy and the Ink Machine/Dark Revival</h2>
<p class="tags">Survival Horror, Unique Art Style, Adventure</p>
<hr>
<p>"Bendy and the Ink Machine is the first person puzzle action horror game that will forever ruin your childhood love of cartoons."</p>
<img src="bendy.png">
</article>
<article>
<h2>Choo-Choo Charles</h2>
<p class="tags">Survival Horror, Open-World, FPS</p>
<hr>
<p>"Navigate an open-world island in an old train, upgrade it over time, and use it to fight an evil spider train named Charles."</p>
<img src="choo.png">
</article>
<article>
<h2>Don't Starve</h2>
<p class="tags">Survival Horror, Open-World, Unique Art Style</p>
<hr>
<p>"Don't Starve is an uncompromising wilderness survival game full of science and magic. Enter a strange and unexplored world full of strange creatures, dangers, and surprises. Gather resources to craft items and structures that match your survival style."</p>
<img src="ds.png">
</article>
</div>
<div class="games">
<article>
<h2>The Mortuary Assistant</h2>
<p class="tags">Survival Horror, Supernatural, Mystery</p>
<hr>
<p>"Alone with the dead... Embalm corpses, banish demons, save your soul."</p>
<img src="tma.png">
</article>
<article>
<h2>Endoparasitic</h2>
<p class="tags">Survival Horror, Third-Person Shooter, Space</p>
<hr>
<p>"Three limbs ripped off, infected with a deadly parasite, you must save your research. Drag yourself through the corridors of a secret research lab on a remote asteroid, fight off horribly mutated monsters, inject countless syringes of vaccines, and survive at all costs."</p>
<img src="endo.png">
</article>
</div>
</body>
I've tried changing the background color of my h2 and .tags elements, but that just sends a light green line across the entire screen. Ideally, I'd like to keep the shape of my boxes and simply change the color above the < br>. All suggestions appreciated!
Put the h2 and p tag in a div and change the background color of that, rather than the individual tags.
So change this
<h2>Hollow Knight</h2>
<p class="tags">Difficult, Souls-like</p></div>
To this
<div class="upper-section">
<h2>Hollow Knight</h2>
<p class="tags">Difficult, Souls-like</p>
</div>
Set the upper section CSS to
.upper-section {
background-color: #39cb34;
}
You should get something like this.
.upper-section {
background-color: #39cb34;
}
p {
font-family: 'Lato', sans-serif;
}
h2 {
padding-left: 2px;
padding-right: 2px;
}
.tags {
font-style: italic;
font-family: 'Source Sans Pro', sans-serif;
}
article {
background-color: #67aa69;
text-align: center;
width: 30%;
padding: 2;
position: relative;
border-radius: 10%;
}
<article>
<div class="upper-section">
<h2>Hollow Knight</h2>
<p class="tags">Difficult, Souls-like</p>
<hr>
</div>
<p>"Forge your own path in Hollow Knight! An epic action adventure through a vast ruined kingdom of insects and heroes. Explore twisting caverns, battle tainted creatures and befriend bizarre bugs, all in a classic, hand-drawn 2D style."</p>
<img src="hollow-knight.png">
</article>
I am trying to get the div with div class bioDiv to line up under the image but have tried so many things that I am just getting more and more confused can anyone look at the code for me and give me a clue? Looking to keep the same look just move the div to a more central location.
here is the code:
body {
width: 100%;
height: auto;
background-image: url("../img/marble-background.gif");
background-size: 100% 100vh;
}
img {
border: 10px solid #E3C640;
}
.menuDiv {
background-color: white;
height: 850px;
width: 300px;
margin-top: 70px;
border: 15px solid #E3C640;
padding-top: 50px;
padding-right: 30px;
padding-bottom: 50px;
padding-left: 30px;
}
.bioDiv {
background-color: white;
height: 850px;
width: 1200px;
border: 15px solid #E3C640;
position: relative;
}
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Welcome to Cary McClures' Portfolio</title>
<style type="text/css">
#import url("bootstrap-5.1.3-dist/css/bootstrap.css");
</style>
</head>
<head>
<body>
<img style="position: absolute; right: 600px; top: 68px
" src="../img/images/me.jpg" width="400" height="600" alt="picture of cary" />
<div class="menuDiv">
<h2 style="color: goldenrod">Home</h2>
<br>
<h2 style="color: goldenrod">Biography</h2>
<br>
<h2 style="color: goldenrod">Education</h2>
<br>
<h2 style="color: goldenrod">Graphic Design</h2>
<br>
<h2 style="color: goldenrod">Freelance</h2>
<br>
<h2 style="color: goldenrod">Baking</h2>
<br>
<h2 style="color: goldenrod">Photo Gallery</h2>
<br>
<h2 style="color: goldenrod">Resume</h2>
<br>
<h2 style="color: goldenrod">Contacts</h2>
<br>
<h2 style="color: goldenrod">Sitemap</h2>
</div>
<div class="bioDiv">
<br>
<h2 style="color: goldenrod">Biography</h2>
<p>Cary L. McClure is an enthusiastic Geneva-based Educator, Culinary Artist, Graphic Designer, and Overachiever with a decade-long background in leadership and customer service.
</p>
<br>
<p>Hailing from Indianapolis originally, Cary’s avid interest in the graphic arts started while he was in high school back in 1983. Unable to attend college, he wound up in the food industry.
</p>
<br>
<p>After working as a Pastry Chef for several years, Cary ultimately has had to alter his career path, due a disability he endured during his time in the military.
</p>
<br>
<p>Currently Cary has been working as a Substitute teacher (K-12) for Adams Central and South Adams Schools.
</p>
<br>
<p>Cary served as an Adjunct Instructor at Ivy Tech Community College, where he taught students about Cakes, Filling and Icings, Wedding Cake Production, and Classical Pastries.
</p>
<br>
<p>In 2019 Cary obtained his bachelor’s degree in Visual Communication (Graphic Design) from Indiana University. Furthermore, he holds an Associates of Applied Science degree (with honors) in Hospitality & Culinary Pastry Arts from Ivy Tech.
</p>
<br>
<p>Outside of his career, Cary L. McClure enjoys reading fantastical books, PS4 and Xbox One gaming, and crafting gum-paste flowers. An avid traveler, he also loves exploring new places and is seeking a position that will allow him to travel across
the country. Above all, he cherishes spending quality time with his family. He is the proud father of one married son.
</p>
<br>
</div>
</body>
</head>
</html>
I would suggest making two containers (an aside and a main) and put the navigation list in the aside and the image and bio in the main. Something like this:
.container {
display: flex;
}
<div class="container">
<aside>
<h1>Put your nav here</h1>
</aside>
<main>
<img src="" height="200" width="300" />
<div>
<h1>Put Bio here</h1>
</div>
</main>
</div>
PS: In case you didn't know, aside and main are semantic HTML5 tags used to markup a page. You can use divs instead of them, but it's not best practice
In Bootstrap you do not have to dictate the widths etc, it can all be done using standard Bootstrap CSS which you dictate as a class= in your HTML. So, for the image you could have that fluid inside a column.
<div class="col-sm-12 col-md-10 mx-auto">
<img src="../img/images/me.jpg" class="img-fluid" alt="picture of cary"/>
</div>
That's full width (12 wide) on small screens and not quite full width (10 wide) on anything larger but mx-auto should center the entire Div. Setting the image to class img-fluid makes it the full width of the Div no matter the screen.
Hopefully after that you can use exactly the same column set up for .bioDiv.
<div class="col-sm-12 col-md-10 mx-auto">
<h2 style="color: goldenrod">Biography</h2>
continued content here....
</div>
Ultimately you are just wrapping the image in a Div and setting both it and bioDiv to the same column parameters. It should not hurt in any way to set up menuDiv a similar way.
I want an image on the left with my article wrapped around the image AND my caption at the bottom. But when I enter my code, it ends up looking like this:
https://i.ibb.co/8Nhk44B/Untitled.png
Notice the caption is up top instead of underneath the image.
How would I correct this? I apologize for the rather ominous topic
.square {}
.square img {
float: left;
padding: 0px 20px 20px 0px;
}
.box {
font-size: x-small;
vertical-align: top;
display: inline-block;
width: 100%;
}
.caption {
font-family: Arial, Helvetica, sans-serif;
display: block;
font-size: x-small;
position: relative;
}
<div class="card">
<h2>
Is this the skull of Mary Magdalene?
</h2>
<h5>Jonathan Milano, May 1, 2021</h5>
<div class="box">
<div class="square">
<a href="post003.html">
<img src="https://milanothan.files.wordpress.com/2021/05/disn_d5xcaazpjz-1-1.jpg" width="50%" style="float: left;" alt="Mary Magdalene’s skull on
display in France" />
<p class="caption" style="vertical-align: bottom; !important">Mary Magdalene’s supposed skull on display in Southern France.<br> Copyright © 2021 Magdalene Publishing
</p>
</a>
<p>Although Mary Magdalene’s historic existence is still under debate today, Christian text from sources including the New Testament tell us that Mary of Magdala (her home village on the shore of the Sea of Gailee) played a significant role in the
life of Jesus Christ and the foundations of Christianity as it is known today.
<br><br> According to legend, Mary was one of the women that stayed with Jesus even up to crucifixion. She is said to be the first one whom Jesus appeared to after resurrection. Other early Christian texts raise her status even more in that after
the death of Christ she is considered almost an apostle rivaling the status of Saint Peter.</p>
<p>The New Testament tells us that the followers of Christ were prosecuted from the Holy Land after his death and many of them were forced out to sea in small ships without sail or rudder where they were left to perish on their own. The most common
version of the legend states that Mary Magdalene was sent with Mary Salomé, Mary Jacobé, Martha, Lazarus, Maximin, and their Egyptian servant Sara into one of these ships.</p>
</div>
</div>
</div>
One of the options:
add float and width for the .caption
.square {
}
.square img {
float: left;
padding: 0px 20px 20px 0px;
width:50%;
}
.box {
font-size: x-small;
vertical-align: top;
display: inline-block;
width: 100%;
}
.caption {
font-family: Arial, Helvetica, sans-serif;
font-size: x-small;
position: relative;
float:left;
width:50%;
padding:0 20px 0 0;
}
a{color:#333;}
<div class="card">
<h2>Is this the skull of Mary Magdalene?</h2>
<h5>Jonathan Milano, May 1, 2021</h5>
<div class="box">
<div class="square">
<a href="post003.html">
<img src="https://milanothan.files.wordpress.com/2021/05/disn_d5xcaazpjz-1-1.jpg" width="50%" style="float: left;" alt="Mary Magdalene’s skull on
display in France" /><p class="caption" style="vertical-align: bottom; !important">Mary Magdalene’s supposed skull on display in Southern France.<br>
Copyright © 2021 <a href="http://www.magdalenepublishing.org/skull-mary-magdalene/" class="ulLink"
target="_blank">Magdalene Publishing</a></p></a>
<p>Although Mary Magdalene’s historic existence is still under debate today, Christian
text from sources including the New Testament tell us that Mary of Magdala
(her home village on the shore of the Sea of Gailee) played a significant role
in the life of Jesus Christ and the foundations of Christianity as it is known today.
<br><br>
According to legend, Mary was one of the women that stayed with Jesus even up to
crucifixion. She is said to be the first one whom Jesus appeared to after resurrection.
Other early Christian texts raise her status even more in that after the death of Christ
she is considered almost an apostle rivaling the status of Saint Peter.</p>
<p>The New Testament tells us that the followers of Christ were prosecuted from the Holy Land after his death and many of them were forced out to sea in small ships without sail or rudder where they were left to perish on their own. The most common version of the legend states that Mary Magdalene was sent with Mary Salomé, Mary Jacobé, Martha, Lazarus, Maximin, and their Egyptian servant Sara into one of these ships.</p>
</div>
</div>
</div>
Another one option:
.square {
}
.square img {
float: left;
padding: 0px 20px 20px 0px;
width:50%;
}
.box {
font-size: x-small;
vertical-align: top;
display: inline-block;
width: 100%;
}
.caption {
font-family: Arial, Helvetica, sans-serif;
font-size: x-small;
position: relative;
float:left;
width:50%;
padding:0 20px 0 0;
}
a{color:#333;}
<div class="card">
<h2>Is this the skull of Mary Magdalene?</h2>
<div class="box">
<div class="square">
<a href="post003.html">
<img src="https://milanothan.files.wordpress.com/2021/05/disn_d5xcaazpjz-1-1.jpg" width="50%" style="float: left;" alt="Mary Magdalene’s skull on
display in France" /><p class="caption" style="vertical-align: bottom; !important">Mary Magdalene’s supposed skull on display in Southern France.<br>
Copyright © 2021 <a href="http://www.magdalenepublishing.org/skull-mary-magdalene/" class="ulLink"
target="_blank">Magdalene Publishing</a></p></a>
<p>Although Mary Magdalene’s historic existence is still under debate today, Christian
text from sources including the New Testament tell us that Mary of Magdala
(her home village on the shore of the Sea of Gailee) played a significant role
in the life of Jesus Christ and the foundations of Christianity as it is known today.
<br><br>
According to legend, Mary was one of the women that stayed with Jesus even up to
crucifixion. She is said to be the first one whom Jesus appeared to after resurrection.
Other early Christian texts raise her status even more in that after the death of Christ
she is considered almost an apostle rivaling the status of Saint Peter.</p>
<p>The New Testament tells us that the followers of Christ were prosecuted from the Holy Land after his death and many of them were forced out to sea in small ships without sail or rudder where they were left to perish on their own. The most common version of the legend states that Mary Magdalene was sent with Mary Salomé, Mary Jacobé, Martha, Lazarus, Maximin, and their Egyptian servant Sara into one of these ships.</p>
<h5>Jonathan Milano, May 1, 2021</h5>
</div>
</div>
</div>
I am trying to make this page responsive. As you can see when I resize the browser the text is scrunched rather than moving to the bottom of the image. Any help would be greatly appreciated!
Here is my HTML:
<div id="content-wrapper">
<div class="container">
<div class="content">
<div class="line">
<h2 class="text-center exec-header">Executive
Directors</h2>
</div>
<article class="ninecol">
<div class="content-item first cf" id="maja">
<figure>
<img alt="" class="bio-pics" src=
"/wp-content/themes/creativeforces/images/majapic.jpg"
width="250px">
</figure>
<h3 class="name">Maja Miletich</h3>
<h5 class="job-title">CEO</h5>
<div class="description">
<p>Maja Miletich is the CEO of Zip Zap Zop Kids,
LLC. Maja has worked with children on many levels.
Having a brother with Autism has given Maja an
understanding of how powerful communication is for
ALL children. Maja has worked for years as a
teacher where she practices emergent
curriculum.</p>
<p>Maja has studied theater and improv at A.C.T. in
San Francisco as well as graduated from The Second
City Training Center in Hollywood where she studied
improv and sketch comedy.</p>
<p>Maja has her Bachelors Degree in Early Childhood
Education. Maja's focus is on inclusive classrooms
where curriculum is designed to allow children and
young adults to feel comfortable expressing
themselves in whichever way they feel most
comfortable</p>
<p>Maja believes when we can share with one another
what has been taught then, and only then, are we
actually learning.</p>
</div>
</div>
<hr>
<div class="content-item first cf" id="april">
<figure>
<img alt="" class="bio-pics" src=
"/wp-content/themes/creativeforces/images/april2.jpg"
width="250px">
</figure>
<h3 class="name">April Miletich</h3>
<h5 class="job-title">CFO</h5>
<div class="description">
<p>April Rasmussen, PhD has been a credentialed
English teacher since 2008 and has taught
everything from advanced placement English language
and composition to literature through film, and
English as a second language support classes. Her
passion is for the art of story and also
storytelling as a tool for student growth. She
holds advanced degrees in education, mythology and
depth-psychology.</p>
</div>
</div>
</article>
</div>
<div class="line">
<h3 class="text-center exec-header">Board of Directors</h3>
</div>
<div class="content-item first cf" id="ari">
<figure>
<img alt="" class="bio-pics" src=
"/wp-content/themes/creativeforces/images/ari.jpg" width=
"250px">
</figure>
<h3 class="name">Ari Schenider</h3>
<h5 class="job-title">President</h5>
<div class="description">
<p>Ari Schneider is a graduate of The Second City
Conservatory and has a (BA) Hons from The Guildford School
of Acting in England. He has been a cast member of the
all-ages improv review The Really Awesome Improv Show
(Voted Best Kid’s Comedy Show) at The Second City in
Hollywood for the past 3 years. He also is affiliated with
the mentorship program, YSF (The Young Screenwriters
Foundation) at New Rhodes as well as teaching afer-school
improv with Zip Zap Zop Kids, LLC.</p>
</div>
</div>
<hr>
<div class="content-item first cf" id="debra">
<figure>
<img alt="" class="bio-pics" src=
"/wp-content/themes/creativeforces/images/debra.jpg" width=
"250px">
</figure>
<h3 class="name">Debra Gliozzi</h3>
<h5 class="job-title">Treasurer</h5>
<div class="description">
<p>Debra Kratochvil Gliozzi is a first generation American
and first in her family to attend college. Her career spans
35 years and two distinct industries. Debra is currently an
administrator and educator in Danville, California. She
brought her MBA and business experience to San Ramon Valley
High School and integrated Business Computers (an ROP
course), Personal Finance and Introduction to Business and
Entrepreneurship into the curriculum. Debra says that her
goal is to equip students with skills that prepare them for
the real world. It is the most important thing I can
do.</p>
<p>This is her second career after transitioning from the
Telecommunications Industry where she held management
positions at Calix Inc., SBC Communications, Pacific Bell,
MCI and Sprint. Her vast experiences included Forecasting,
Accounting, Business Analysis, Market Financials,
Competitive Assessment, Product Development, Product
Marketing, Procurement, Quality Management and Sales
Operations & Planning.</p>
</div>
</div>
<hr>
<div class="content-item first cf" id="debra">
<figure>
<img alt="" class="bio-pics" src=
"/wp-content/themes/creativeforces/images/melina.jpg"
width="250px">
</figure>
<h3 class="name">Melina Johnson</h3>
<h5 class="job-title">Secretary</h5>
<div class="description">
<p>Melina Johnson is a self-employed entrepreneur who
created her own home organizing business. Melina is the
mother of two children, her son having Autism. She has
spent countless hours dedicated to researching and
providing her son with the best therapies and services to
help him with his growth and development. Every therapist
and teacher, over the years, has told Melina that her
natural sense of humor has been the best therapy she could
provide to her son - Humor and laughter open up doors to
cognitive and social development. And it’s fun!</p>
<p>Melina’s education has been in the health sciences,
having a degree in Dental Hygiene. After years of hygiene
practice, she decided to create a job for herself that
would utilize her natural organizational skills, and allow
her creativity and fun. Melina continues to grow her home
organizing business and raise her children with a strong
sense of responsibility, and a positive outlook on
life.</p>
</div>
</div>
</div>
</div>
and CSS:
.line {
overflow: hidden;
text-align: center;
}
.exec-header{
margin-top: 15px;
display: inline-block;
padding: 0 15px;
position: relative;
font-family: Roboto Condensed;
font-weight: bold;
font-size: 30px;
}
.content .ninecol {
padding-right: 4.6875%;
padding-left: 4.6875%;
}
.exec-header:before{
right: 100%;
}
.exec-header:before, .exec-header:after {
background: #333333;
content: "";
display: block;
height: 3px;
position: absolute;
top: 50%;
width: 96%;
}
.content {
overflow: hidden;
margin: 0 auto;
max-width: 1200px;
}
.content-item.first {
padding-top: 0;
background: 0;
overflow:hidden;
}
.content-item {
margin-left: -2.18978%;
margin-right: -2.18978%;
padding: 30px 2.18978%;
}
#maja{
margin-top: 10px;
}
#ari{
margin-top: 10px;
}
.exec-header:after {
left: 100%;
}
.cf:before, .cf:after {
content: " ";
display: table;
}
.content-item figure {
}
figure img {
padding-bottom: 14px;
}
.bio-pics {
display: block;
max-width: 100%;
height: auto;
-ms-interpolation-mode: bicubic;
-moz-user-drag: -moz-none;
-webkit-user-drag: none;
user-drag: none;
}
h3.name {
margin-bottom: .75em;
line-height: 1.2em;
font-family: Roboto Condensed;
font-weight: bold;
}
.content-item figure {
float: left;
margin-right: 5.83942%;
margin-bottom: 0;
}
.content-item .description, .content-item .details {
overflow: hidden;
}
.content-item .description {
min-height: 0;
}
h5.job-title{
font-family: Roboto Condensed;
font-weight: bold;
margin-top: -16px;
}
try by adding float:left ; in description class in css file
it should work also add an display inline-block to div with id=maja
The timeline starts here and ends when the CSS title starts, the timeline should have a line and bubbles going on both sides, but instead it's just plain text. It should look like this photo (from https://codyhouse.co/gem/vertical-timeline/):
HTML
<div class="container">
<h1>Garfields Life</h1>
<div class="timeline">
<h2>1978-1980</h2>
<ul>
<li>
<h4>Garfield</h4>
<p>A look at the revolutional story of the iconic comic strip</p>
<time>August 1978</time>
</li>
<li>
<h4>Garfields First Comic</h4>
<p>The Garfield comic strip, drawn by cartoonist Jim Davis, starts in 41 U.S. newspapers.</p>
<time>June 1978</time>
</li>
<li>
<h4>His Popularity Grows</h4>
<p>The popularity of the Garfield comic strip spreads like his waistline. It has now spread to over 100 newspapers.</p>
<time>June 1979</time>
</li>
<li>
<h4>Garfields First Book</h4>
<p>Garfield at Large, his first book, hits #1 on The New York Times bestsellers list and stays there for nearly two years</p>
<time>Febuary 21,1980</time>
</li>
</ul>
<h2>1981-1982</h2>
<ul>
<li>
<h4>Bestsellers List</h4>
<p>Three Garfield books appear simultaneously on The New York Times bestsellers list. "Garfield at large,Garfield gains weight,Garfield bigger then life"</p>
<time>December 1981</time>
</li>
<li>
<h3>Paws Inc was established</h3>
<p>1981 Jim Davis starts Paws, Inc., a creative studio to handle the writing, drawing, and design for all Garfield products. The company is housed in a simple ranch house near Muncie, Indiana.</p>
<time>May 1982</time>
</li>
</ul>
<h2>1982-1983</h2>
<ul>
<li>
<h4>1000 Newspapers</h4>
<p>The Garfield comic strip now appears in 1,000 newspapers.</p>
<time>January 1982</time>
</li>
<li>
<h4>First TV Special</h4>
<p>Garfield’s first animated television special, "Here Comes Garfield", airs on October 25, 1982. At the animation studio, Jim Davis was having trouble animatating Garfield dancing on tiny cat feet. Charles Schulz, creator of Peanuts, who happened to be working in the same studio, solved Jim's problem by suggesting that Garfield stand upright on bigger feet</p>
<time>January 1982</time>
</li>
<li>
<h4>Bestsellers List Again.</h4>
<p>Seven Garfield books appear simultaneously on The New York Times bestsellers list the record has still never been reached</p>
<time> November 1982</time>
</li>
<li>
<h4>Peoples Magazine Cover</h4>
<p>Garfield makes the cover of People magazine as America’s #1 personality and announces the debut of his first television special.</p>
<time>November 1982</time>
</li>
<li>
<h4>Garfield Goes Worldwide</h4>
<p>The comic strip now appears in over 1,400 newspapers in 22 countries and is translated into seven languages.</p>
<time>January-December 1983</time>
</li>
</ul>
<h2>1984-1986</h2>
<ul>
<li>
<h4>First TV Commercial</h4>
<p>Garfield and Jim Davis star in the humorous American Express "Do You Know Me?" TV commercial.</p>
<time>January 1984</time>
</li>
<li>
<h4>Garfield Wins Emmy</h4>
<p>The second animated television special, Garfield on the Town, garners Jim Davis his first of four Emmy Awards.</p>
<time> May 1984</time>
</li>
<li>
<h4>Macy's Thanksgiving Day Parade</h4>
<p>Garfield gets a big head as the giant Garfield helium balloon makes its first appearance in the Macy’s Annual Thanksgiving Day Parade.</p>
<time>November 1984</time>
</li>
<li>
<h4>Garfield's Second Emmy!</h4>
<p>The third animated television special, Garfield in the Rough, wins an Emmy Award for Outstanding Animated Program.</p>
<time>September 1985</time>
</li>
<li>
<h4>Fastest-Growing Comic Strip</h4>
<p>The comic strip now appears in 1,800 newspapers and is called "the fastest-growing comic strip in history.</p>
<time>January 1986</time>
</li>
<li>
<h4>Garfield in Paradise</h4>
<p>His fifth television special, Garfield in Paradise, airs on CBS primetime. "This is my favorite Garfield special." - Jim Davis </p>
<time>May 1986</time>
</li>
</ul>
<h2>1986-1989</h2>
<ul>
<li>
<h4>Another Year, Another Emmy!</h4>
<p>Garfield takes home his third Emmy Award for his fourth television special, Garfield’s Halloween Adventure. </p>
<time>September 1986</time>
</li>
<li>
<h4>Stuck on You: The Phenomenon</h4>
<p>The grinning orange cat suction-cupped to a car window was a best seller, showing up in cars, buses, trains and planes all over the world. More than just a fad, the "Stuck on You" Garfield craze was a full-blown phenomenon, and tens of millions were sold between 1987 and 1989.</p>
<time>November 1987</time>
</li>
<li>
<h4>Garfield in the Rose Bowl Parade</h4>
<p>A new marigold was developed by Burpee to honor the 10th birthday of the popular comic character Garfield on June 19. The exclusive hybrid, which matches Garfield's exact shade of orange, was introduced at the Tournament of Roses Parade in Pasadena on Jan. 1, 1988. More than 100,000 of the flowers were used to decorate the feline's float in the parade. </p>
<time> January 1988</time>
</li>
<li>
<h4>Happy Birthday, Garfield</h4>
<p>Happy Birthday, Garfield is an hour-long television special on CBS celebrating the tenth anniversary of the Garfield comic strip. This behind-the-scenes special is hosted by Garfield creator, Jim Davis.</p>
<time>May 1988</time>
</li>
<li>
<h4>Garfield and Friends Debuts</h4>
<p>Garfield and Friends, an animated television show starring Garfield, debuts on CBS Saturday mornings. Each half-hour episode contains two Garfield cartoons and one U.S. Acres cartoon. Most shows also featured a number of "Garfield Quickies," which were super-short comedy vignettes that acted as info between the stories. </p>
<time> October 1988</time>
</li>
<li>
<h4>Garfield's Fourth Emmy!</h4>
<p>Garfield’s Babes & Bullets wins yet another Emmy Award for Outstanding Animated Program, closing out a decade of domination. Created in the style of classic film noir, Babes & Bullets featured Garfield as Sam Spayed, a tough-talking private eye beset with babes and bruisers as he tries to solve a murder case.</p>
<time>September 1989</time>
</li>
</ul>
<h2>1992-1997</h2>
<ul>
<li>
<h4>Garfield Goes Green</h4>
<p>Reflecting Jim Davis' avid concern for the environment, the orange cat goes green. Jim and Garfield campaign for wetlands restoration and also work with the National Wildlife Federation to create "schoolyard habitats" where students can learn about nature.</p>
<time>January 1992</time>
</li>
<li>
<h4>Mrs. Bush's Story Time</h4>
<p>Garfield joins First Lady Barbara Bush as a guest on the ABC national radio program, Mrs. Bush's Story Time. One million children and their parents listen to Mrs. Bush and Garfield read some of the nation's best-loved children's books.</p>
<time>March 1993</time>
</li>
<li>
<h4>Garfield Bookmobile</h4>
<p>Garfield hitches a ride on the Muncie Public Library Bookmobile. The first of many libraries on wheels to use the image of Garfield to promote reading.</p>
<time>April 1994</time>
</li>
<li>
<h4>"Cool Cat"</h4>
<p>In Germany, Garfield’s music CD, "Cool Cat," tops the charts. An animated music video is produced featuring Garfield as a dancing rock star and record-spinning DJ with various other cats as backup singers.</p>
<time>March-May 1995</time>
</li>
<li>
<h4>Orange Bowl Parade</h4>
<p>A dapper and large Garfield balloon heads south to appear in his first Orange Bowl parade.</p>
<time>January 1996</time>
</li>
<li>
<h4>Indianapolis 500 Parade</h4>
<p>Garfield and Jim Davis rev up for fun as Grand Marshals for the Indianapolis 500 Parade. The auto race, held in Jim's home state of Indiana, is one of the premiere motorsports events in the world.</p>
<time>May 1996</time>
</li>
<li>
<h4>Big, Fat, Hairy Website</h4>
<p>Garfield's first website, www.garfield.com, makes its worldwide debu</p>
<time> December 1996</time>
</li>
<li>
<h4>So Much Stuff...So Little Time</h4>
<p>The fat cat launches his first catalog, Garfield STUFF®! Shopping...it's not just for Christmas anymore!</p>
<time>1997-2016</time>
</li>
</ul>
<h2>2000</h2>
<ul>
<li>
<h4>Theme park</h4>
<p>The Garfield and Odie mascots find cool new summer hangouts at two amusement parks: Kennywood Park in Pennsylvania and Lake Compounce in Connecticut.</p>
<time>April 2000</time>
</li>
<li>
<h4>Garfield Games</h4>
<p>Garfield plays around on his new game website www.garfieldgames.com.</p>
<time> 2001-Now</time>
</li>
<li>
<h4>Garfield Sets a World Record</h4>
<p>"Garfield: Most Widely Syndicated Comic Strip in the World," declares the Guinness Book of World Records.</p>
<time>January 2002</time>
</li>
<li>
<h4>Garfield Turns 25</h4>
<p>Garfield celebrates a quarter-century of cattitude with a 12-city book tour to debut a new book, Garfield at 25: In Dog Years I’d Be Dead. There's also a week-long birthday cruise for fans and a three-day "Fan Birthday Bash" in Muncie, Indiana that includes a Fur Ball, a parade, and an exhibit of 25 Garfield statues designed and decorated by local artisans.</p>
<time>June 2003</time>
</li>
</ul>
<h2>2004-2012</h2>
<ul>
<li>
<h4>Garfield: The Movie</h4>
<p>Garfield: The Movie is the first-ever full-length, live-action/CGI feature film that stars the fat cat and a dimwitted dog named Odie! The movie appears in theaters worldwide and features a cast that includes Breckin Meyer as Jon Arbuckle; Jennifer Love Hewitt as Liz, the veterinarian; and Bill Murray as the voice of Garfield.</p>
<time>June 2004</time>
</li>
<li>
<h4>Garfield: A Tail of Two Kitties<h4>
<p>The sequel to Garfield: The Movie debuts. It’s Garfield: A Tail of Two Kitties. Together, the two films gross over $340 million at the box office. In fact, A Tail of Two Kitties becomes the most popular animated feature EVER released in China!</p>
<time>June 2006</time>
</li>
<li>
<h4>Garfield Gets Real is Released</h4>
<p>Jim Davis serves as writer and producer of a new direct-to-video movie, Garfield Gets Real. This is the first of three DTV movies to be produced by Davis.</p>
<time>September 2007</time>
</li>
<li>
<h4>Voilà! A New TV Show!</h4>
<p>Garfield celebrates his 30th birthday with a brand-new animated television show, Garfield et Cie (The Garfield Show), which debuts on the France 3 network. The fully-animated half-hour show is a production of Paws, Inc. and Dargaud Media, a Paris-based animation and publishing company.</p>
<time>November 2008</time>
</li>
<li>
<h4>Voted the Best!</h4>
<p>People magazine names The Garfield Show one of the best new kids' shows for 2009! </p>
<time>
December 2009</time>
</li>
<li>
<h4>The Garfield Show in Japan</h4>
<p>Cartoon Network launches The Garfield Show in Japan and Asia.</p>
<time>2012-Present</time>
</li>
</ul>
<h2>2012-Present</h2>
<ul>
<li>
<h4>A Classic Is Back<h4>
<p>The classic animated TV show from the '80s and '90s, Garfield and Friends, is released digitally to an eager audience on the video service website HULU.</p>
<time> May 2012</time>
</li>
<li>
<h4>Facebook</h4>
<p>Garfield surpasses the 10 million fan mark on Facebook. It’s clear the world really Likes Garfield!</p>
<time>July 2013</time>
</li>
<li>
<h4>35 Years of Fat Cat Fun!</h4>
<p>Garfield celebrates his 35th birthday in style with a brand-new book: a special collection of Sunday comics, handpicked and annotated by creator Jim Davis.</p>
<time>November 2013</time>
IM DYING OMG I HAVE TO ADD MORE WRITNG TO POST THIS UHGHGHG
</div>
</div>
CSS
The key reason why this isn't working I suspect is the import compass/css3 code isn't working
#import "compass/css3";
$gray: #dddddd;
h1, h2, h3 {
font-weight: 300;
}
.container {
padding: 1em;
}
.timeline {
position: relative;
overflow: auto;
&:before {
content: '';
position: absolute;
height: 100%;
width: 5px;
background: $gray;
left: 0;
}
h2 {
background: $gray;
max-width: 6em;
margin: 0 auto 1em;
padding: 0.5em;
text-align: center;
position: relative;
clear: both;
}
ul {
list-style: none;
padding: 0 0 0 1em;
z-index: 1;
}
li {
background: $gray;
padding: 1em;
margin-bottom: 1em;
position: relative;
&:before {
content: '';
width: 0;
height: 0;
border-top: 1em solid $gray;
border-left: 1em solid transparent;
position: absolute;
left: -1em;
top: 0;
}
}
h3 {
margin-top: 0;
}
time {
font-style: italic;
}
}
#media screen and (min-width: 40em) {
.container {
max-width: 1000px;
margin: 0 auto;
}
.timeline {
&:before {
left: 50%;
}
ul {
padding-left: 0;
max-width: 700px;
margin: 0 auto;
}
li {
width: 42%;
}
li:nth-child(even) {
float: right;
margin-top: 2em;
}
li:nth-child(odd) {
float: left;
&:before {
border-top: 1em solid $gray;
border-right: 1em solid transparent;
right: -1em;
left: auto;
}
}
li:nth-of-type(2n+1) {
clear: both;
}
}
}
CSS
.timeline {
list-style: none;
padding: 20px 0 20px;
position: relative;
}
.timeline:before {
top: 0;
bottom: 0;
position: absolute;
content: " ";
width: 3px;
background-color: #999999;
margin-left: -1.5px;
}
Vertical timeline is done, just add bubbles or icons to each event in timeline.
CSS:
.timeline {
list-style: none;
padding: 20px 0 20px;
position: relative;
}
.timeline:before {
top: 0;
bottom: 0;
position: absolute;
content: " ";
width: 3px;
background-color: #999999;
margin-left: -1.5px;
}
.timeline-badge {
color: #fff;
width: 50px;
height: 50px;
line-height: 50px;
font-size: 1.4em;
text-align: center;
position: absolute;
top: 30px;
margin-left: -25px;
background-color: #999999;
z-index: 100;
border-top-right-radius: 50%;
border-top-left-radius: 50%;
border-bottom-right-radius: 50%;
border-bottom-left-radius: 50%;
}
HTML:
<div class="timeline-badge"></div>
add this line before the main heading (year heading)
Alignment is not done, position your bubble as you like.!!!