Align center portfolio images

GK User
Tue Aug 16, 2016 1:21 pm
Hi,

Please could you help me with some ideas to align center the images of the portfolio (https://demo.gavick.com/joomla25/photo/)?

Thanks in advance.
User avatar
Expert Boarder

teitbite
Fri Aug 19, 2016 6:08 pm
Hi

I'm afraid I do not understand. Images are in 2 rows completely filling the space, so can You please explain how would You like to have it and tell me exactly which style You are using. Best would be just an url to the page with it.
User avatar
Moderator

GK User
Mon Aug 22, 2016 2:30 am
Hi Teitbite,

The images of each row are filling the space and aligned to the left. I'm using this style https://demo.gavick.com/joomla25/photo/index.php/work, you could check the position of the picture once you compare with the same picture at the item view https://demo.gavick.com/joomla25/photo/ ... ched-house. What we are looking for is the picture fill the space and also center align in each row.

Thanks in advance.
User avatar
Expert Boarder

teitbite
Tue Aug 23, 2016 2:27 pm
Hi

Now I understand, but it's done this way so each image has same height and than sides are cut. You change it to show 100% of the image in width, but it will bring You some empty spaces if images will not cover height entirely:

Code: Select all
.portfolio .itemImageBlock {
    background-repeat: no-repeat;
    background-size: 100% auto;
}


not the best looking with this change I'm afraid.
User avatar
Moderator

GK User
Wed Aug 24, 2016 8:34 am
Hi Teitbite,
I'm not being clear enough. This is the link to the website we are working on:
http://stamina.studio/index.php/work

As you can see there the logos we are using in this portfolio, the images are not aligned to the center, what we are looking just to align this images to the center.

Thanks.
User avatar
Expert Boarder

teitbite
Thu Aug 25, 2016 3:54 pm
Hi

Now it's clear :) Thank You. Please add this to override.css

Code: Select all
.portfolio .itemImageBlock {
    background-position: center center;
}
User avatar
Moderator

GK User
Mon Aug 29, 2016 3:36 am
Thanks! working perfect.
User avatar
Expert Boarder

teitbite
Thu Sep 01, 2016 1:21 pm
Hi
Glad I could help.
---
If You were satisfied with our support please let other users know on Twitter: http://twitter.com/gavickpro or Facebook: http://www.facebook.com/gavickpro
User avatar
Moderator


cron