Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Solution using Basic HTML and CSS

Niño 20

@razec3rd

Desktop design screenshot for the News homepage coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hello, I'm still new in creating websites and I still don't know how to create a mobile version. Please tell me what should I do because I think my code is messy and also what I should learn. Thank you!

Community feedback

Adriano 34,090

@AdrianoEscarabote

Posted

Hi Niño, how are you?

I really liked the result of your project, but I have some tips that I think you will enjoy:

  • avoid using id when you are developing with just html and css, prefer using classes in that case!
  • images must have alt text unless it is a decorative image, for any decorative image each IMG tag must have empty alt="" and add aria-hidden="true" attributes to make all the assistive technologies of the Web , the screen readers. Learn the differences between decorative/meaningless images vs important content.

The rest is great!

I hope it helps... 👍

Marked as helpful

1

Niño 20

@razec3rd

Posted

@AdrianoEscarabote Thank you for the tips!

1

@BikoiFr

Posted

Hi, to create a mobile version you need to use @media screen

@media screen and (max-width: 900px) { #id { display: flex; } }

You can also put alternative text for all images and You should avoid to use position absolute for all your div but to try to use flex box or css grid. Happy Codding !

Marked as helpful

1

Niño 20

@razec3rd

Posted

@BikoiFr Thank you for the tips!

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord