please send the answer
How to reduce height in mobile view
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
please send the answer
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Naimish MakwanaRank #324 · 7.7K reputationPosted Feb 23, 2023, 1:52 AM EST
Hello Rajesh,
To reduce the height of an element in mobile view using CSS, you can use media queries to target specific screen sizes and apply specific styles.
Example : reduce the height of an element with a class of "example-class" to 50 pixels in mobile view:
/* Default styles for the element */ .example-class { height: 100px; } /* Media query for mobile screens */ @media only screen and (max-width: 767px) { .example-class { height: 50px; } }Thanks
Naimish Makwana
Jignesh KumarRank #91 · 22.9K reputationPosted Feb 23, 2023, 2:54 AM EST
Hi Rajesh,
You can use @media screen query in css.
https://www.c-sharpcorner.com/UploadFile/b19d5a/making-Asp-Net-web-application-to-display-size-compatibility/
https://jsfiddle.net/bdv2L0a0/
Vishal YelveRank #178 · 13.6K reputationPosted Feb 23, 2023, 5:58 AM EST
Hi Rajesh,
pelase refer below link
https://ishadeed.com/article/responsive-design-height/