Ey! I came back!
I was a little frustrated about responsive design and how to organize my CSS so I went to study the “Introduction to Responsive Design” by Kevien Powell that you haev in YT.
Sooo, i decided to remake all my Responsive Web Projects taking all these new knowledge!
https://codepen.io/RazielTX/pen/qBqWRaN
This is the tribute page with mobile first, Flex and Grid!
I did a bit of tramp, hehe, 'cause I made all in VS Code without taking count of user stories and then I added them.
Thanks for feedback!
Hi @RazielTX !
I think your page looks really good.
One of your images is not loading.
Keep up the good work!
Pejman
January 28, 2021, 8:58am
3
Hey @RazielTX ! welcome back :). Your page looks great. It’s a good thing that you found Kevin’s videos ;).
Hi RazielTX. Your tribute page looks impressive!
I felt the same regarding Responsive Web Design and still have my struggles and occasional obstacles rendering my projects responsive. I should have a look at Keven Powell content you suggested.
One small critique- there are some grammar errors in your page, right from the 3rd line you spell the person of subject “Howard short” instead of Shore
Thank you!
A months ago you reviewed my Technical page and helped me a lot!
I don’t know why the image don’t load, but I chagend it.
Again, lot of thanks!
Thanks!
I think Kevin is amazing! I was so lost in CSS’s world but I found the way!
Ey! Thanks!
Yes! In freecodecamp’s YouTube Chanel there ir an introduction to RD and its amazing: Introduction to RD
Oh! Sorry for the mistakes, I was so tired and began to write with no sense, haha. Thanks for the critic!
Roma
January 28, 2021, 5:33pm
8
Your page looks good @RazielTX . Some things to revisit;
Run your HTML code through the W3C validator .
There are HTML coding errors you should be aware of and address.
Since copy/paste from codepen you can ignore the first warning and first two errors.
Don’t use in-line styling. Make all your styling external.
It will make maintenance a lot easier if you need to resize your iframes if they’re in one place rather than five.
Thanks @Roma !
Ok! I ran the code through the W3C Validator and sure, I was using div instead figure and the problem with the iframes.
Where can I insert the attributes in CSS? I just copied the code that YT gave me and then code the CSS.
HTML:
<iframe width="560" height="315" src="https://www.youtube.com/embed/SRgBI0WqWp4" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
CSS:
.video-container {
position: relative;
padding-bottom: 56.25%;
height: 0;
}
iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
Thanks a lot!
Roma
January 28, 2021, 9:03pm
10
You have an iframe selector in your stylesheet. How about adding the height and width property: value; pair there.
Did you try doing that first?
Omg, haha, ya!
So, the tag should be:
<iframe src="https://www.youtube.com/embed/SRgBI0WqWp4" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
And the CSS:
iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
}
Roma
January 28, 2021, 9:15pm
12
Yepper
Or if you want you could set the height and width to another size using relative values rather than using 100%. (But you already knew that part)