For some reason, my HTML code ensuring the easy flow of my blog card from desktop view to mobile view didn't work, and when the page is minimised, instead of the card minimising itself together with the page it stayed in place and would become hidden even when the page is only half minimised. Any other feedback would also be appreciated. Thank you in advance :)
Danilo Alves 🎧
@mizek1All comments
- @OlgaElKhayatSubmitted 4 months agoWhat specific areas of your project would you like help with?@mizek1Posted 4 months ago
Hi Olga! I recommend that you study a little about positioning, especially flexbox. The problem you described occurs because you used fixed margins to position the element on the screen. So, when the screen decreases in height or width, the element continues with the positioning you defined. Flexbox rules will help you position the element and ensure that the element adjusts to the width and height in a better way. I have a fun way for you to learn flexbox, that is https://flexboxfroggy.com/, is a game where you can see and learn how flexbox works and will help you a lot.
Marked as helpful1 - @jAllanOliSubmitted 10 months ago
- @enriquesbSubmitted about 2 years ago
I tweaked the margins of several elements in the website but I couldn't achieve pixel-perfect distribution compared to the design provided in the challenge. Maybe there is a way I didn't know that could have made it easier.
I would appreciate any suggestion for that :)
@mizek1Posted about 2 years agoThis is an almost perfect design, congrats. My way to achieve an almost pixel-perfect is set font-size on body (that is informed on style-guide) and work with relative sizes (%, rem, em) instead of pixels, I think it's easier than go pixel to pixel to find the perfect size.
Marked as helpful1 - @Souheib-AlouiSubmitted about 2 years ago
- Should have i used a main tag instead of the container div to give semantic meaning ?
- Tried to align the text : by using text-indent , adjusting the font size ( which shouldn't be an option since there is a set value ) , any suggestions ?
- Was my media query lacking ? Thank you for your feedbad.
@mizek1Posted about 2 years agoHi! I will try to answer your questions and give you some advice, based on my experience here on FrontEnd Mentor. First, yes, use semantic tags always you can. One thing I always do (and I don't know if it's the best practice, but seems to works very well when the challenges are only one card like this one) is that I always have a <main> tag as first and only child of <body>. This helps me to add meaning to the block and makes it easier to adjust the layout too. When your text doesn't look like the one on design files, try to add some horizontal padding to adjust it, it works if your font-size is correct. Your media query looks fine, I only suggest you to not include "only screen", it can be only "@media (max-width: 375px) {}". Other thing I suggest is that you try to use a higher breakpoint, since some devices will not show desktop layouts properly. I usually use 768px or 1024px.
1 - @AnastasiiaPushkarevSubmitted about 2 years ago
Hello everyone. Long time haven't code anything. So, trying to remind myself basics. I'd be happy to get some feedback
@mizek1Posted about 2 years agoHi, great job! I suggest that you search about <picture> when you have different conditions to show images, it works very well when you have this case where you need to show an image on desktop size and another image on mobile size. Try to use more semantic tags, like <section> or <aside>, they work like a <div> but can make your blocks more meaningful.
Marked as helpful0 - @byhenriquesilvaSubmitted about 2 years ago@mizek1Posted about 2 years ago
Oi Henrique, tudo bem? Parabéns pela solução, espero contribuir de alguma forma para o seu crescimento como desenvolvedor com o feedback abaixo.
- Recomendo dar uma olhada em HTML semantico, é importante começar a usar section, article e outras tags que vão dar um real significado ao seu conteúdo.
- Sempre que puder, adicione um texto no "alt" das imagens com um texto que descreva o que é a imagem ou o que ela representa dentro da página.
- Uma coisa que rapidamente entendi fazendo os desafios aqui do FrontEnd Mentor é que é importante começar a desenvolver as aplicações utilizando tamanhos relativos, como %, rem ou em, pois os layouts vão ser mais fáceis de desenvolver e provavelmente ficarão mais similares aos do design sugerido.
0 - @AlbertoCastroFSubmitted about 3 years ago
how can i know how many containers i should use when creating semantic html? how can i make sure to center a single element on the screen properly?
@mizek1Posted about 3 years agoYou can use flexbox properties like align-items and justify-content, for example, to center elements on the screen or with parent containers. There is a nice tutorial you can read and learn more about it: https://css-tricks.com/snippets/css/a-guide-to-flexbox/
Marked as helpful2