simon saunders
Posts: 0
Joined: Tue Jun 24, 2014 2:14 pm

how can i add padding to a grid of images?

how can i add padding to a grid of images? using javascript onload command?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

how can i add padding to a grid of images?

Simon,

You may use css or js. At your discretion.

simon saunders
Posts: 0
Joined: Tue Jun 24, 2014 2:14 pm

how can i add padding to a grid of images?

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?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

how can i add padding to a grid of images?

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

simon saunders
Posts: 0
Joined: Tue Jun 24, 2014 2:14 pm

how can i add padding to a grid of images?

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

how can i add padding to a grid of images?

Simon,

Then you should use

codeAppery("mobilegrid_7").find("[data-role=appery_label]").css('padding','10px');/code

Return to “Issues”