Hello fellow campers, I design a Stan Lee’s Tribute Page as my first Responsive Web Design Project. Hope that you like it and i’ll aprecciate to read and discuss any the observations that you will might have.
Note: In the iconic stories section i wish that i could put a border to the images, but when i put it in the #img-div, i don’t know what happen but the border gets out of the image (this happens only on phone screen sizes). And if i put the border on the img element, the test script tells me that the images are not centered.
Thanks for the advice!!! I already did solve the problems of W3C and added a few little tweaks that you told me (like the footer color, font sizes and so).
And finally used the “Open sans” font for the title, which is an alternative font of the marvel logo typography; and for the text, I used “Roboto, Trebuchet MS, Helvetica, Arial, sans-serif” which is the font family that Marvel uses on their website.
Note: When i try to solve the problem putting the border in the “img” element, the problem fixes but the test script tells me that the image is not centered.
To fix this, you have to add specificity to your .img-div class which means you have to tell the browser where to specifically style that element (your <img> tag only), now what you did is that you used only the .img-div class, this only means that everything inside the figure’s children (elements that are inside the <figure> tag) will be affected in some way (depends on the properties).
Now you’ve told the browser: Inside my <figure> tag with the class of .img-div, add a border only on my <img> tag, now if you decrease the width of the tribute page, your border won’t overflow. Also decrease the margin bottom to 10px as shown in the code to remove additional space.
And last but not least your figcaptions will be centered between your images, to fix that do this:
Now the position: relative; will keep the <figcaption> in its document flow, which gives you the ability to move it wherever you want by using offsets (top, right, bottom, left) and won’t affect other elements when moved.
You’re welcome @Stepmix! As you can see you Tribute Page has improved a lot . Now to spice it up even more , you can:
Add links (a link to an iconic story that is relative to that superhero) to your images in the “Most Iconic Stories” section, then add a simple animation. Example: when on :hover the image will scale in size and a box-shadow will appear with a slight fade.
Remove the text-decoration in “Wikipedia Entry” by setting it to none; and add a hover animation. Example: when on :hover the color of the text will become darker or you can remove the underline on the text but on hover add an animation where that underline appears. Hint for the 2nd Ex: use the pseudo element ::after.
Increase the contrast of the border on your superhero images.
Note:
On your font-family the “Trebuchet MS” font needs to be in quotes because:
Family names are case-sensitive and need to be wrapped in quotes if there is a space in the name. For example, like you did with "Open Sans" font.
In the “Most Iconic Stories” section, your image classes when you’ve named them you’ve put dashes between them but in the xmen_img you’ve used an underscore.
Make sure to host your images on Github instead of copying the image address on a google image because the provider of that image can delete it.
If you have any questions, make sure to comment so I can reply!
I hope this helped .