Tagged: center align, Portfolio
-
AuthorPosts
-
January 15, 2015 at 10:43 am #379944
Hello,
I have a portfolio where some portfolio items have only one image (http://allisonparkinson.co.uk/wp/portfolio-item/kidney-research-round-up/).
How can I center align portfolio items/images where there is only one image?
Or how can I have a portfolio display 1 column? (Enfold aloows for the minimum 2 columns)many thanks,
PeterJanuary 15, 2015 at 8:05 pm #380367Hi TheElear!
Please add following code to Quick CSS
.av-masonry-col-2 .av-masonry-entry { width: 100%; }Cheers!
YigitJanuary 16, 2015 at 12:53 am #380549Hi Yigit,
This unfortunately does not work.
Do you have any other suggestions?regards,
January 16, 2015 at 6:36 pm #380976Hi!
Please try adding !important rule as following
.av-masonry-col-2 .av-masonry-entry { width: 100%!important; }Regards,
YigitJanuary 16, 2015 at 7:08 pm #381024Hi Yigit,
Still no luck.
regards,
TheElearJanuary 18, 2015 at 10:12 am #381406Hi!
I think it’s working. Please remove browser cache then reload the page. If the fix is not what you’re hoping for, post a screenshot.
Cheers!
IsmaelJanuary 18, 2015 at 3:35 pm #381466This reply has been marked as private.January 19, 2015 at 3:23 pm #381809Hey!
It does working fine on my end as well – http://i.imgur.com/q9HuFT1.png
If you have a chance, can you please check your website on another computer?Cheers!
YigitJanuary 21, 2015 at 2:18 pm #382999Hi Yigit,
Indeed it is centered. It was cache issue.
Images are centered now however they are also full size.
Is it possible to center them but keep the size like here http://imgur.com/853Y6al ?many thanks,
PeterJanuary 22, 2015 at 11:26 am #383594Hey!
You have to remove the css code we suggested above. If there is only one image or item in the page, use the Image element instead of the masonry element. You can’t center align the masonry items because the position of the entries is calculated dynamically via isotope script.
Regards,
IsmaelJanuary 22, 2015 at 12:47 pm #383637Hi Ismael,
Many many thanks. That solves my issue.
you can close this thread nowregards,
Peter -
AuthorPosts
- The topic ‘Center align portfolio’ is closed to new replies.
