AdaGenesis
New Coder
HELP NEEDED! I am brand new to programming, with about a week under my belt from beginner classes. I am trying to complete a project, and I am struggling to fulfil the last 2 reqs. They are
User Story #8: The img element should responsively resize, relative to the width of its parent element, without exceeding its original size.
User Story #9: The img element should be centered within its parent element.
I have pasted my work below. Any help is so appreciated!
<style>
#main {
font-size: 50px;
text-align: center;
}
#title {
font-size:30px;
text-align: center;
}
#tribute-info {
text-size: 20px;
text-align: center;
}
body {
background-image: linear-gradient(0deg, #191970 10%, #191970 25%, #ADD8E6 100%);
}
div {
<div id="container">
<img id="image"
}
h3 {text-align:center;}
<figure id="img-div">
<img
id="image"
src="https://assets.change.org/photos/9/ne/ac/voneaCqdxrMRZMk-800x450-noPad.jpg?1568387953"
alt="Zim and his companion, Gir, being curious"
/>
<figcaption id="img-caption">
Zim, on the right, rules Earth with his companion robot, Gir. Gir also has mini-moose.
</figcaption>
</figure>
</style>
<h1 id="main">
<strong>Invader Zim</strong>
</h1>
<h2 id="title">
"I am Zim!"
</h2>
<img id="image" src="https://assets.change.org/photos/9/ne/ac/voneaCqdxrMRZMk-800x450-noPad.jpg?1568387953" alt="Zim and his companion, Gir, being curious">
<h3 id="imgdesc">
Zim, on the right, rules Earth with his companion robot, Gir. Gir also has mini-moose.
</h3>
<h3 id="tribute-info">
Here is what Zim seeks!
</h3>
<h4>
<ul>
<li> Compliance
<li> Super Weapons
<li> Human Knowledge
<li> Waffles
<li> More Super Weapons
<p> Curious to find about more Irken knowledge? <a
id="tribute-link"
href="https://en.wikipedia.org/wiki/Invader_Zim"
target="_blank"
>Click here you fool!!</a
>
User Story #8: The img element should responsively resize, relative to the width of its parent element, without exceeding its original size.
User Story #9: The img element should be centered within its parent element.
I have pasted my work below. Any help is so appreciated!
<style>
#main {
font-size: 50px;
text-align: center;
}
#title {
font-size:30px;
text-align: center;
}
#tribute-info {
text-size: 20px;
text-align: center;
}
body {
background-image: linear-gradient(0deg, #191970 10%, #191970 25%, #ADD8E6 100%);
}
div {
<div id="container">
<img id="image"
}
h3 {text-align:center;}
<figure id="img-div">
<img
id="image"
src="https://assets.change.org/photos/9/ne/ac/voneaCqdxrMRZMk-800x450-noPad.jpg?1568387953"
alt="Zim and his companion, Gir, being curious"
/>
<figcaption id="img-caption">
Zim, on the right, rules Earth with his companion robot, Gir. Gir also has mini-moose.
</figcaption>
</figure>
</style>
<h1 id="main">
<strong>Invader Zim</strong>
</h1>
<h2 id="title">
"I am Zim!"
</h2>
<img id="image" src="https://assets.change.org/photos/9/ne/ac/voneaCqdxrMRZMk-800x450-noPad.jpg?1568387953" alt="Zim and his companion, Gir, being curious">
<h3 id="imgdesc">
Zim, on the right, rules Earth with his companion robot, Gir. Gir also has mini-moose.
</h3>
<h3 id="tribute-info">
Here is what Zim seeks!
</h3>
<h4>
<ul>
<li> Compliance
<li> Super Weapons
<li> Human Knowledge
<li> Waffles
<li> More Super Weapons
<p> Curious to find about more Irken knowledge? <a
id="tribute-link"
href="https://en.wikipedia.org/wiki/Invader_Zim"
target="_blank"
>Click here you fool!!</a
>