adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

How can I make html component take up all the space of the mobile container for any screen size?

I have place some html code within html component and set the dimensions of the component as 100% width and auto height, but doesn't fill the mobile container. As I increase the screen size the space between the header and the component increases.

Image

The lined elements are the html that is in the html component. The background is just a css class with the container set to it.

adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

How can I make html component take up all the space of the mobile container for any screen size?

It works perfectly for my html component. I tried adding it to my grid component but it does not work. Do you have a solution for this?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

How can I make html component take up all the space of the mobile container for any screen size?

Adam,

This code works for grid as well, just use grid name instead.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

How can I make html component take up all the space of the mobile container for any screen size?

Try to add class for grid (in Properties set Class Name to gridClass) and add this code to CSS asset:

pre.gridClass {
width: 100vw !important;
height: 100vh !important;}/pre

adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

How can I make html component take up all the space of the mobile container for any screen size?

That works, but I also see a mistake I made. I had added it to the outer grid. I had to add it to the grid I have inside that one. Thank you!

Return to “Issues”