Hello everyone!
I’ve just finished the first big FCC project, creating a tribute page to one of my idols, the great Mia Zapata, late singer of The Gits.
It was really fun doing this project, I had to research a lot and feel like I learned a lot in the process and became more familiar with HTML and CSS.
However, I’m sure my coding lines can be better, so I’d love to receive your feedback!
Thank you!
Hello Manuuzzz!
Woah, you’re right!
I guess I oversaw that, if tehre’s already a h1 in css, it makes no sense to keep the inline style.
Thank you for your feedback!
Ah, @Manuuzzz, now I remember why I kept the inline style: somehow, when I wrote “color: green;” at the h1 element in CSS, it wouldn’t change the color! Any other change would work, like putting it in italic , however, I couldn’t make it green.
I wrote it in CSS once again, and this time I used the command “!important” - this time it worked.
I don’t know why this happened.
I think that is because you use tags within your figcaption.
For example:
if you set color: green in figcaption within your css, it will be green…but then your h2 will also be green.
(i’m not sure if you should use tags within a figcaption.
As a workaround, you can add another class name to your h1 element, for example :
< h1 class=“text-center colorgreen”>
In css: h1.colorgreen { color: green; }
But that is in fact quasi the same as you do with !important.
Anyway, i think it because of your figcaption - h usage.