gab87
April 6, 2020, 5:11pm
1
Tell us what’s happening:
I’m stuck in a USER STORY #9 (BUILT A TRIBUTE PAGE)
Your code so far
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.2 Safari/605.1.15
.
Challenge: Build a Tribute Page
Link to the challenge:
Learn to code. Build projects. Earn certifications.Since 2015, 40,000 graduates have gotten jobs at tech companies including Google, Apple, Amazon, and Microsoft.
ilenia
April 6, 2020, 5:46pm
2
without your code it is not possible to help
but you can take a look at what appears below the failing user story, there is often written what’s wrong or what you can do to fix the issue
gab87
April 6, 2020, 6:02pm
3
THIS WHAT THEY ASK: The img
element should be centered within its parent element.
THIS WHAT I WROTE. THANK YOU SO MUCH
img {
max-width: 100%;
display: block;
height: auto;
text-align: center;
position: relative;
}
#image {
position: absolute;
text-align: center;
}
Dr.Norman Borlaug
Dr. Norman Borlaug, third from the left, trains biologists in Mexico on how to increase wheat yields - part of his life-long war on hunger.
enwffjflwj
gab87
April 6, 2020, 6:04pm
4
img {
max-width: 100%;
display: block;
height: auto;
text-align: center;
position: relative;
}
#image {
position: absolute;
text-align: center;
}
Dr.Norman Borlaug
Dr. Norman Borlaug, third from the left, trains biologists in Mexico on how to increase wheat yields - part of his life-long war on hunger.
enwffjflwj
ilenia
April 6, 2020, 6:44pm
5
can you give the link to your pen? it is easier to debug
but anyway
When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>
) will also add backticks around text.
Note: Backticks are not single quotes.
gab87
April 6, 2020, 6:55pm
6
<html>
<head>
<style>
img {
max-width: 100%;
display: block;
height: auto;
text-align: center;
position: relative;
}
#image {
position: absolute;
text-align: center;
}
Dr.Norman Borlaug
Dr. Norman Borlaug, third from the left, trains biologists in Mexico on how to increase wheat yields - part of his life-long war on hunger.
enwffjflwj
gab87
April 6, 2020, 6:59pm
7
<html>
<head>
<style>
img {
max-width: 100%;
display: block;
height: auto;
text-align: center;
position: relative;
}
#image {
position: absolute;
text-align: center;
}
</style>
<title id="title">Dr.Norman Borlaug</title>
</head>
<main id="main">
<body>
<div id="img-div">
<img
src="https://c2.staticflickr.com/4/3689/10613180113_
fdf7bcd316_b.jpg" id="image"></br>Dr. Norman Borlaug, third from the left, trains biologists in Mexico on how to
increase wheat yields - part of his life-long war on hunger.
<p>enwffjflwj</p>
<div id="img-caption">
<h1>jejewlfwefjw</h1>
<div id="tribute-info">
<p>dnjfjkbfk</p>
</div>
<p>QUESTO E' IL NOSTRO TESTO
<a id="tribute-link" href="https://codepen.io/freeCodeCamp/full/zNqgVx"
target="_blank">
LEGGI DI PIU