Page 1 of 1

Ionic 1 - using css to set grid cell width

Posted: Thu Sep 03, 2020 11:42 am
by AndyP

Hi,

In an Ionic-1 project can you tell me how to set the width of a specific cell to a bespoke width (other than the % in the properties panel) please?

I've tried to use

.setCellWidth {
width: 5% !important;
}

but it has no effect......


Re: Ionic 1 - using css to set grid cell width

Posted: Thu Sep 03, 2020 12:33 pm
by Serhii Kulibaba

Hello,

Please add the custom class to the grid component and use it in the following CSS code for that:

Code: Select all

.myGrid .row .col{
    width:50px;
    min-width: 50px;
    max-width: 50px;
}

Re: Ionic 1 - using css to set grid cell width

Posted: Wed Sep 16, 2020 9:04 am
by AndyP

many thanks!