how can i add padding to a grid of images? using javascript onload command?
how can i add padding to a grid of images? using javascript onload command?
Simon,
You may use css or js. At your discretion.
i realise that. just started to use this. prefer to use javascript. what would be the code? i have tried
Appery("mobilelabel_18").css('paddingLeft','10px');
i want to make all cell padding the same, say 5px. i have a lot of cells.
i have 4 rows of 3 images. i dont want to add code per image, too messy. any easier methods? say for the whole grid component?
Simon,
You may use this code:
codeAppery("mobilegrid_7").find("[data-role=appery_label]").css('paddingLeft','10px');/code
where mobilegrid_7 must be the name of your grid component
that would only add padding to the left? thats not what i want.
i want padding all around,like in dreamweaver when you add padding, top , bot, left, right for all cells. thanks
Simon,
Then you should use
codeAppery("mobilegrid_7").find("[data-role=appery_label]").css('padding','10px');/code