Hello guys,
it's been a while...
I am starting a new project and I have an issue with gallery field thumbnails.
I'd like them to be responsive, to change size depending on the user screen size,
but I can't find a way to make this work.
Just to try, in the full article template I tried to insert the gallery field inside a dive witha custom class
<div class="cb-img"><?php echo $item->fields_by_id[30]->result; ?></div>
and the CSS class
.cb-img img{width:100%;
}
.cb-img {width:50%;
height:50%;
}
this resizes the div, but the image inside it does not adapts to it
I must admit that it's been months since the last time I worked
on some CSS code, so I may have been lost the grip on what I am doing here... eheh
Feel free to inspect the code here
Click here to link...
Thank you,
Nic
Hello guys, it's been a while...
I am starting a new project and I have an issue with gallery field thumbnails. I'd like them to be responsive, to change size depending on the user screen size, but I can't find a way to make this work.
Just to try, in the full article template I tried to insert the gallery field inside a dive witha custom class
and the CSS class
this resizes the div, but the image inside it does not adapts to it
I must admit that it's been months since the last time I worked on some CSS code, so I may have been lost the grip on what I am doing here... eheh
Feel free to inspect the code here Click here to link...
Thank you, Nic