how to scale images on percentages?
i want to scale an image based on % like you do with the grid cells. In the dimensions, I see Im only allowed to put in the value of the pixels. Is there a way to put in % for the dimensions of an image?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
i want to scale an image based on % like you do with the grid cells. In the dimensions, I see Im only allowed to put in the value of the pixels. Is there a way to put in % for the dimensions of an image?
Right now it takes a number (pixels) only. You should be able to use % via JavaScript or a CSS class.
ok, well I did this css code and the width didnt expand with different screen sizes changed:
.personal-background {
width: 100%;
height:100px;
}
is there anything wrong with this css?
This code should work code.personal-background {
width: 100% !important;
height:100px;
} /code
yes that worked.
Question? the '!important' property.... To me it looks like it takes priority when theres a similiar property name... In this case its 'width' since width was already in the dimensions of the image... Just wanted to know the meaning of '!important'
In Dimensions there is a Default value of width, and it has priority, when you add !important in Custom CSS - your style will be used instead.