Results 1 to 9 of 9

Thread: Center dfGallery

  1. #1
    New user
    Join Date
    06-23-09.
    Posts
    5

    Default 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

  2. #2
    User Toflar's Avatar
    Join Date
    06-19-09.
    Location
    Lyss, Switzerland
    Posts
    170

    Default 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
    Regards

    Yanick - Contao core developer @terminal42 gmbh

  3. #3
    New user
    Join Date
    06-23-09.
    Posts
    5

    Default 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

  4. #4
    User Toflar's Avatar
    Join Date
    06-19-09.
    Location
    Lyss, Switzerland
    Posts
    170

    Default 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
    Regards

    Yanick - Contao core developer @terminal42 gmbh

  5. #5
    New user
    Join Date
    06-23-09.
    Posts
    5

    Default 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

  6. #6
    User Toflar's Avatar
    Join Date
    06-19-09.
    Location
    Lyss, Switzerland
    Posts
    170

    Default Re: Center dfGallery

    It did not work? Impossible - which browser are you using?
    Regards

    Yanick - Contao core developer @terminal42 gmbh

  7. #7
    New user
    Join Date
    06-23-09.
    Posts
    5

    Default 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.

  8. #8

    Default 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;}
    Extensions: avatar, cron, dlstats, editarea, geshi, helpdesk, recall, rep_*, smhcheck.
    FAQ's - Documents - Tickets
    Please no help requests by PM, use the forum or ticket link above instead!

  9. #9
    New user
    Join Date
    06-23-09.
    Posts
    5

    Default Re: Center dfGallery

    Hello,

    Perfect, that was it. I removed "block" and now it works perfect.

    Thanks
    Markus

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •