alain
(alain)
April 19, 2018, 10:15am
1
Hi everyone,
I am building a Lightbox gallery with thumbnails.
I would like my images to be centered vertically AND horizontally as well.
I succed in centering the pictures vertically but not horizontally.
Could someone help to achieve this ?
http://www.adobati.fr/test/statuaire.php
freewaytalk mailing list
email@hidden
Update your subscriptions at:
The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...
Reading time: 2 mins 🕑
Likes: 1 ❤
alain
(alain)
April 19, 2018, 3:44pm
2
Hello, nobody knows ???
freewaytalk mailing list
email@hidden
Update your subscriptions at:
The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...
Reading time: 2 mins 🕑
Likes: 1 ❤
Jeremy
(Jeremy Hughes)
April 19, 2018, 3:52pm
3
On 19 Apr 2018, at 16:44, alain email@hidden wrote:
Hello, nobody knows ???
Can you centre the box that the gallery is in?
Inflow HTML boxes can be centred horizontally using auto margins (Align:Center in the Measurements section of the Inspector palette).
Jeremy
freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options
Jeremy
(Jeremy Hughes)
April 19, 2018, 3:56pm
4
… although, from at your web page, it looks like you have the images centred horizontally but not vertically.
Jeremy
freewaytalk mailing list
email@hidden
Update your subscriptions at:
The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...
Reading time: 2 mins 🕑
Likes: 1 ❤
alain
(alain)
April 19, 2018, 3:59pm
5
Thanks jeremy,
yes, that’s the problem.
I want the content of my box to be centered in the middle, both horizontally and vertically.
freewaytalk mailing list
email@hidden
Update your subscriptions at:
The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...
Reading time: 2 mins 🕑
Likes: 1 ❤
Jeremy
(Jeremy Hughes)
April 19, 2018, 4:06pm
6
Hi Alain,
If you know the size of the box and the size of the content, you could use padding to centre the content.
E.g.
Create a box that is 200px square
Insert a graphic that is 108px high (as an inflow item)
Set the box padding to be 46px top and 46px bottom: 46 = (200 - 108) / 2
Jeremy
freewaytalk mailing list
email@hidden
Update your subscriptions at:
The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...
Reading time: 2 mins 🕑
Likes: 1 ❤
alain
(alain)
April 19, 2018, 4:25pm
7
Jeremy,
there is a CMS installed on this page (Webyep).
It means a vertical OR an horizontal image can be added to the box as a thumbnail without knowing in advance.
What i would like to do is that any content would be centered in the middle of the box (horizontal and vertical).
freewaytalk mailing list
email@hidden
Update your subscriptions at:
The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...
Reading time: 2 mins 🕑
Likes: 1 ❤
Jeremy
(Jeremy Hughes)
April 19, 2018, 5:15pm
8
Maybe Max has some ideas?
Otherwise, here’s a trick that I found and adapted:
Make the graphic into a layer child of the box
Set the top and left positions of the graphic to be 50%
Select the graphic and choose Extended from the Item menu
New div style
Set name to “transform” and value to “(translate: -50%, -50%)”
It will look wrong in Freeway, but should be correct on output.
Jeremy
freewaytalk mailing list
email@hidden
Update your subscriptions at:
The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...
Reading time: 2 mins 🕑
Likes: 1 ❤
waltd
(Walter Davis)
April 19, 2018, 9:53pm
9
Another trick you can use is to make your images square, and pad them with transparent or white pixels on the “short” sides.
Walter
On Apr 19, 2018, at 1:15 PM, Jeremy Hughes email@hidden wrote:
Maybe Max has some ideas?
Otherwise, here’s a trick that I found and adapted:
Make the graphic into a layer child of the box
Set the top and left positions of the graphic to be 50%
Select the graphic and choose Extended from the Item menu
New div style
Set name to “transform” and value to “(translate: -50%, -50%)”
It will look wrong in Freeway, but should be correct on output.
Jeremy
freewaytalk mailing list
email@hidden
Update your subscriptions at:
Information for existing FreewayTalk / Groups.io users - Site Feedback - Softpress Talk
freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options
alain
(alain)
April 20, 2018, 8:02am
10
Hi guys,
thanks to both of you for helping.
Walt, this is a CMS.
I built this site for a customer who is not used to Photoshop.
He doesn’t know how to prepare his images for the web.
The purpose is that whatever the image is, it is automatically centered in the middle of the box.
I hope Max has a solution.
freewaytalk mailing list
email@hidden
Update your subscriptions at:
The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...
Reading time: 2 mins 🕑
Likes: 1 ❤
Todd2
(Todd)
April 20, 2018, 4:36pm
11
What about Flexbox? Works great for centering.
I use it to center videos of unknown dimensions.
Todd
QREATiv Project
freewaytalk mailing list
email@hidden
Update your subscriptions at:
The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...
Reading time: 2 mins 🕑
Likes: 1 ❤
alain
(alain)
April 20, 2018, 5:14pm
12
Hi Todd,
yes this is what Max tells me to do and yes it works perfectly.
Thank you
freewaytalk mailing list
email@hidden
Update your subscriptions at:
The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...
Reading time: 2 mins 🕑
Likes: 1 ❤