-
Center dfGallery
Hello,
I have searched the new and the old forum quite a while, but I did not found any solution to my following problem:
Until Version 2.6.x (I Think) I used the Alignment selection box when editing content elements for centering them. I noticed this feature has been banned in one of the last versions. I read this also in the announcements I think.
For most content elements I solved the problem to center them using a stylesheet now.
The only "center-resistant" content element is the dfGallery.
Can you guide me to solution for centering the dfGallery, because a left-aligned df-Gallery does not look very good below a centered heading.
Regards
Markus
-
Re: Center dfGallery
Hi Markus,
We'll need some CSS for you...
Could you please post the link to your webpage? Would make it a lot easier for us :)
Thanks ;)
-
Re: Center dfGallery
Hello Yanick,
thanks for your reply.
Here is the page:
http://www.loeschgruppe-guerzenich.de/typo/index.php
I used galleries e.g. under "Gerätehaus", "Fahrzeuge"->"LF 16" or "LF 16 TS".
Regards
Markus
-
Re: Center dfGallery
Markus
A simple
Code:
.ce_dfGallery block {
text-align: center;
}
in your CSS file should do it.
Did you know that we've got a German community, which is even bigger than the English one?
http://www.typolight-community.de - just in case you wanna use your native language :D
-
Re: Center dfGallery
Hello Yanick,
I tried this, but I did not work. I also tried Margin-left and Margin right set to "Auto".
Any further idea.
Thanks for the German forum tipp. If we don´t find any solution here, I´ll try it there, but maybe you have got another idea.
Regards
Markus
-
Re: Center dfGallery
It did not work? Impossible - which browser are you using?
-
Re: Center dfGallery
I tried Firefox and IE 8.0. The modified style sheet is still installed on the server and I do see the changes from the backend also in the css file.
-
Re: Center dfGallery
When I remove "block" from your style in firefox' web developer It works for me:
.ce_dfGallery{margin-right:auto;margin-left:auto;text-align:center;}
-
Re: Center dfGallery
Hello,
Perfect, that was it. I removed "block" and now it works perfect.
Thanks
Markus