Jump to content

Images at Center


farhana

Recommended Posts

If this is supposed to be a masonry layout, created using JavaScript, it needs to be adjusted.

 

This will give you responsive 2 column vertically aligned middle row of images.

.raxGallery.grid-item {
    position: static !important;
vertical-align: middle;
}

.bwg_standart_thumbnails_228.gridData {
    width: 100% !important;
height: auto !important;
}

/* REMOVE THIS
#bwg_standart_thumbnails_228 > a {
    width: 100%;
}  */

.bwg_standart_thumb_img_228 {width: 100% !important;  }
Link to comment
Share on other sites

This will cause each image width to fill column block available width ,
.grid-item span {
    width: 100%;
}

the column block whose height matches the highest of the two images, the space above and below the narrow portrait image height, cannot unless you totally redesign layout, be narrowed, its vertically align to middle to again highest image height. Align these to top, larger space below, align to bottom, larger space above.

Link to comment
Share on other sites

 

If this is supposed to be a masonry layout, created using JavaScript, it needs to be adjusted.

 

This will give you responsive 2 column vertically aligned middle row of images.

.raxGallery.grid-item {
    position: static !important;
vertical-align: middle;
}

.bwg_standart_thumbnails_228.gridData {
    width: 100% !important;
height: auto !important;
}

/* REMOVE THIS
#bwg_standart_thumbnails_228 > a {
    width: 100%;
}  */

.bwg_standart_thumb_img_228 {width: 100% !important;  }

Is there a way that images should be in sequence without vertical alignment in middle?

Link to comment
Share on other sites

The positioning is controlled by JavaScript, each image parent is given a left and top property, as I said in the first line "IF masonry layout, the js code needs adjusting", if you want back as original remove the

 

.raxGallery.grid-item {
position: static !important;
}

 

but i assure you the two image rows will not be in middle, but slightly to the left.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...