i tried various methods but unable to make mobile and desktop version together
Aram Nayebbandi
@devaramnyeAll comments
- @sgr26bstSubmitted about 1 year ago@devaramnyePosted about 1 year ago
Hey,
I recommend you to have a deeper diver in media query and most of time its from flow more effective or easier to run down if you start with mobile first work flow.
Marked as helpful0 - @szakidani23Submitted about 1 year ago@devaramnyePosted about 1 year ago
Hello,
you can center your project by:
body { min-height: 100vh; display: flex; justify-content: center * To center the items of the flex container horizontally align-items: center * To center the items of the flex container vertically }
Marked as helpful0 - @LegionofDeadSubmitted about 1 year ago@devaramnyePosted about 1 year ago
Hello,
you can center your project by:
body { min-height: 100vh; display: flex; justify-content: center * To center the items of the flex container horizontally align-items: center * To center the items of the flex container vertically }
Marked as helpful0 - @pedroquackSubmitted about 1 year ago@devaramnyePosted about 1 year ago
Hello,
you can center your project by:
body { min-height: 100vh; display: flex; justify-content: center * To center the items of the flex container horizontally align-items: center * To center the items of the flex container vertically }
Keep up you work & happy coding!
Marked as helpful1 - @recre1231Submitted about 1 year ago@devaramnyePosted about 1 year ago
Hello there,
I like your work and I have only one tip for future project's. This block of CSS code is to center your project horizontally & vertically. You did everything already correct in your media query by giving the .wrapper a
display: grid
&place-content:center
but the only thing which is missing is themin-height: 100vh
to full fill the requirement to center everything correctly.body { min-height: 100vh; display: flex; justify-content: center * To center the items of the flex container horizontally align-items: center * To center the items of the flex container vertically }
Keep up you work & happy coding!
Marked as helpful0 - @yhuteemorenSubmitted about 1 year ago@devaramnyePosted about 1 year ago
Hey,
I like the way you used media query to sort the order of the grid-items to fit perfectly. You motivated me to re-think about my solution as I used only once media query in this project. Thanks for that impressive example!
Have a good day & happy coding
1 - @khoirulwanaSubmitted about 1 year ago@devaramnyePosted about 1 year ago
Hey there,
I would recommend you to read more about HTML5 landmarks. Its an important part of being able to create a good structure of your HTML document for readability approach. Therefore you didn't create a correct connection between your label & input element. Inside your label element the attribute for with the value of input should be similar to the attribute id of your input element. As example:
<form> <label for="input">...</label> <input id="input" />... </form>
and I would suggest you to create a button with the
<button>
element instead of creating a div. Last but not least I recommend you to not fix your height in your CSS. It should be only used in rare situations and in my last 3 months journey it coursed more problems than fixing ones. The philosophy of a responsive layout should always be "CSS is responsive by its own" and we are coursing the problem of responsibility. The height of an container should always be in relationship with its content. (Just a tip of my road).Marked as helpful0 - @CHEGEBBSubmitted about 1 year ago@devaramnyePosted about 1 year ago
Hey,
this project looks amazing.
A good approach is practicing HTML5 landmarks to get rid of the div element. It gives the HTML a better structure and a huge advantage for readability. Further your project should be centered in the middle of the screen which you can achieve by giving your body in CSS the properties of:
body { min-height: 100vh; display: flex; justify-content: center * To center the items of the flex container horizontally align-items: center * To center the items of the flex container vertically }
Keep up you work & happy coding!
0 - @techbooster23Submitted about 1 year ago
this was intresting task for me I done this challenge after just completing my MTE, almost after 20/days break and completed in a day i am happy for this. anyone who want to suggest any thing just add comment
@devaramnyePosted about 1 year agoGreat work there,
I recommend you getting rid of div's, instead use landmarks. As example you declared your first div inside your body with an attribute of class with the value of main. You could instead create a <main> landmark which contains the main content of your page. It give a better HTML structure / readability.
And you missed this part:
- View the optimal layout depending on their device's screen size
You can reach the goal by working with media queries and for the image to be responsive, you can use the element picture to have an integrated media query inside your HTML for your image. This project has two different image sizes for depending device.
You can find the information's of media queries and the element picture on the internet. And you need some more information's about responsibility, you can give yourself a little peek to kevin powells 21 day challange which is for free. It gives a huge knowledge area for your future work with CSS.
0 - @Damilare203Submitted about 1 year ago
What are the best practises for having a great responsive designs ? Kindly share materials be it in videos or docs ,article or blogs.
@devaramnyePosted about 1 year agoI recommend the free responsive course of kevin powell. Its a great 21 day challange and gifts you with alot of informations & knowledge
0 - @SalarSadeghiSubmitted about 1 year ago
It would be better if there was any Figma Design. What a pitty...!
@devaramnyePosted about 1 year agoGood work there,
I recommend to not aim for pixel perfect. The best approach currently is to follow the importance of semantic HTML markups & landmarks. As example in a HTML document there should be only one
h1
element. The next heading continues with h2 h3 h4 and so forth.- a good approach is to get away of the div elements because HTML5 gifts us with useful landmarks like header, main, navbar, footer, aside etc. This helps us to structure our HTML for better readability.
Go and check the landmarks to practice those stuffs. There are alot of infos to grab on the Internet and you wont regret 🌞
Happy coding and good work! Keep going
Marked as helpful0 - @leomrgreenSubmitted about 1 year ago@devaramnyePosted about 1 year ago
Very good work here,
I just have one suggestion for you to center the whole stuff inside the body in the middle. You have to give your body the properties of:
body { min-height: 100vh; display: flex; justify-content: center; align-items: center; }
this will make your project look more similar to the previewed one. Happy coding and keep up your big work!
Marked as helpful1