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

Responsive CSS and HTML

@Wandesanguine

Desktop design screenshot for the 3-column preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

@mohammedlahboub

Posted

@Wandesanguine Your solution is perfect (for mobile view) you could use display: flex & media querie to make .containner responsive :

@media (min-width:400px){
     .containner{
       display:flex;  
       justify-content: center; 
         =>to stack the .group1, .group2 and .group3 horizontally
                                    }
   .body{  
   height:100vh; =>  set the body height to the screen height
   display:flex;
   flex-direction:columns ; =>  to stack the  body  on top of the  footer
    align-items: center;  =>  to center the  body  vertically
    justify-content: center;  => to center   body  horizontally
                           }
               }```
              
After this you can adjust the borders, background etc 
happy coding

Marked as helpful

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