i dont know if this is the right place to put this... but i need help with my active pet's treasure, i would like it to be in a scroll box... but im still learning the css.... so would anyone please help me? thank you for your time ❤
Throw the code just below into your style tags and it should work, so it's sets the height of the pet treasure element to 200px you can change that to whatever you desire then next property "overflow-y" determines how element will react to contents that overflow in the y axis (up and down) you can also use "overflow" which does both directions which is x-axis (left and right) and y-axis (up and down) though how treasure is set up x-axis should never have overflow unless it too small for one image but that be strange. Anyways auto tells it to clip the overflow and add a scrollbar when there is overflow if all contents fit then no scroll bar is added
{
height: 200px;
overflow-y: auto;
}
Though I did notice you have scroll bars hidden so one won't appear but the functionality will be there
Hope that helps if you have any further questions or I didn't explain something enough or clearly let me know
, the explanation went a little over my head, and the code didnt work for me at first, but then i tweaked it until it did work----thank you so much for your help! ^^
basically when you change height of the element it's changed to that height size, though in this case if you only set height the visuals are not affected. So when you set overflow to appropriate values then it clips the contents in this case treasure items that don't fit in the element's set height and scroll functionality is added as well
that's strange should have worked with no tweaks but if you got it to work for you oh well doesn't matter overall,
feel free to ping, comment, smail me if you have any future questions