Skip to content
  • Learning paths
  • Challenges
  • Solutions
  • Articles
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 2 years ago

Web page using Html, Css, Javascript

Sudip Khatri•540
@SudipKhatri036
A solution to the News homepage challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


I find managing the web page for different screen size difficult but i think i did my best for that and it helped me to understand media query and best practice for resopnsive website and i'm going to improve more in other challenges

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • Toluwalase•160
    @Tolux001
    Posted about 2 years ago

    Hello. An idea on how to make your image responsive on different devices

     <picture> 
      <source 
        srcset="name of image"
        media="(min-width: screen size )"
      />
       
      <source 
        srcset="name of image"
        media="(min-width: screen size)"
      />
      
    **Default if your picture media query doesn't work**
      <img 
        src="" 
        alt=""
      />
    
    </picture>
    

    For other responsiveness, you need to take note of important break point. Mobile S -320px. Mobile M -375px.

    Mobile L - 425px --> Tablet - 768px Most important to me for mobile devices

    Marked as helpful

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
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub