At first blush the WordPress gallery function seems fairly clunky, and one might assume that in order to gain control over how a gallery presents would require some kind of plugin … but there are shortcode settings that allow for impressive controls.
First of all, while galleries can be made by => inserting a series of images into a page or post => then deleting them from view => then inserting the shortcode [*gallery*] (without the asterix)
this is not necessary
What you can do instead is to => insert images into the media library => associate those images with a post via the media library => and then insert the shortcode above
In addition there are ways to further modify how the gallery is configured by defining shortcode parameters
By default a gallery will show images in 3 columns but this can be changed via this insertion: columns=”4″
To control the order of images use: orderby=”title” order=”ASC” (or DSC)
To insert a gallery from another source: id=”23″ (the number must be used not the “pretty URL” => hover over title in back-end array to get this number)
By default images are shown by “thumbnail” to change this use: size=”medium” (or “thumbnail” | “medium” | “large” | “full’ )
there can be some default (dynamically inserted) code that inserts a border around each of the gallery thumbnail images, if so insert the following into the theme stylesheet to remove it:
.gallery a img{border: 0 !important;}
for more information see this article