Hi, everybody! Just finished the Tribute Page challenge and I would really appreciate your feedback. I get the feeling that I should get rid of some habits before they become problems.
Nice. Here some practices you should add/avoid.
- Always make sure your website looks good on mobile (it doesnāt )
- In normal production stylesheet links go in the
<head>
, on codepen, they go in your css setting (I see you have the bootstrap css library there, you need to add your font there as well, we never put it in a<div>
). - You are using inline css in your HTML. It is not generally a good idea to have a
<style></style>
in your HTML, in real production we put that in a separate file (like the bootstrap file you imported), and in codepen we put our css rules in the css tab (I see you already have a couple there). - you have a
<div class="container">
at the top for really no reason especially with your<body>
after it. divās only go in the body. - we donāt usually add a class to the body. You would want to add a div inside your body with container and silver-background.
- In codepen we donāt have to put the body element, but it doesnāt affect anything.
There are a couple other things, but keep practicing, and you will learn the best habits and techniques yourself.
First of all, thank you for your feedback, it was very helpful I made some improvements to my code based on your advice, but I keep hitting the bootstrap wall. How do I get my page to be mobile responsive? I know Iāve added bootstrap to codepen, so I donāt need to add all the links I keep finding on google about installing bootstrap, but Iām missing something. Somehow, the container class to my div isnāt doing anything. In the training itās very simple: just add div class=ācontainer-fluidā and all the elements on your page should be responsive. Please help
Here is a recent thread that should help you with responsive design and bootstrap:
Responsive Design Thread
you didnāt put container-fluid you just put container.
I must say, the page itself looks remarkably good on my computerscreen, sadly I canāt check on a mobile.
greets,
lawfets
Sure you can.
I see your tribute page is not yet responsive and thatās because you use several places where width = 800px; for instance. as long as you keep giving minimum width, the page will stay the same no matter what you do.
greets,
lawfets