How to set an Ionic Layout grid column width to a fixed size

Is it possible to set the ion-col to a set pixel size rather than a percentage?

I just want to set a column to a set px size…
I have the following where I want the first col to be say 10px

               <ion-col width-X='10px' style='width:10px;background-color:red'></ion-col>
                      <div><b>item 1</b></div>
                    <div>item 2</div>
                     <div>item 3</div>

But the first column is always 50%.

Is there a way to use a fixed px?

Thanks in advance

Do you have any solution for this?


I am pretty sure this is the css that did it … {
    flex: 0 0 4px;

and then just apply this…

<ion-col class='my-thin-col'></ion-col>
1 Like

Thanks, it works!! :slight_smile: