Customizing outside title

Your Account / Forums / Easy FancyBox Pro / Customizing outside title

  • Author
    • October 30, 2020 at 5:33 pm #30002

      I have customized the outside titles in Fancybox at this site, Works fine. Looks fine, except for one small issue. The width of the title spans the width of #fancybox-wrap. This creates unsightly wide left and right margins when titles are much shorter than the allocated space. I can fix this by using { display:inline-block } for #fancybox-title. But then the title is no longer centered! I have messed around with CSS to no avail.

      Is there some way I can have the width of the title block scaled to fit the text, and at the same time have the title block centered?

      Much obliged for any help.

    • October 30, 2020 at 5:33 pm #30003

      Never mind. I figured it out. I mixed up the lineage of #fancybox-title-outside and .fancybox-title-outside.

    • October 30, 2020 at 5:33 pm #30006

      Great work! 🙂

  • You must be logged in to reply to this topic.