Topic: Make tab height adjust to screen resolution

1001albertpadilla free asked 4 years ago


How can I make the tab height adjust to the screen resolution? I'm currently controlling the tab height using this style -- height: 540px; overflow-y: scroll; overflow-x: hidden;

It looks good for screen resolution 1366x768. But when the resolution is increased to 1536x864 , the tab height looks short. How can I make the height adjust automatically? I tried using percentage but I can't seem to make it work.

Any advice please? Thanks!


Konrad Stępień staff answered 4 years ago


Hi @1001albertpadilla,

One solution setsvh and vw. More info about it you can find here: https://alligator.io/css/viewport-units/

Or better way you can add media in css to sets breakpoints.

More info about it you have in this article: https://alligator.io/css/media-queries/

Tell me if you still have a problem. You can also provide me code.

Best, Konrad.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 7.5.3
  • Device: Laptop
  • Browser: Chrome
  • OS: Win 10
  • Provided sample code: No
  • Provided link: No