Welcome to TalkGraphics.com
Results 1 to 7 of 7
  1. #1
    Join Date
    May 2009
    Posts
    300

    Default Collapsible text (e.g. in FAQ)

    What's the simplest way to create (in a site with two variants) a FAQ within a text panel, where questions are always visible and answers can be expanded and collapsed? I need the panel to resize depending on the amount of text displayed, but I just can't get this to work. Thanks.

  2. #2

    Default Re: Collapsible text (e.g. in FAQ)

    Can't help with the auto resize other than to find an accordion script somewhere and insert it. I use popup layers for a q and a section on web sites and either size the popup to fit the text or use a constant size large enough to handle the largest text block and/or cover the underlying stuff on screen. I've used canned accordion scripts but I prefer the built in popup just for the ease of editing the content when necessary.

  3. #3
    Join Date
    May 2009
    Posts
    300

    Default Re: Collapsible text (e.g. in FAQ)

    Thanks - yes, editing the FAQ is an important issue, but I'd prefer to avoid popup layers if possible.

    Some site visitors will want to view the FAQ with just a couple of questions expanded, but as a single document (so that they can see the answers to their 2 questions in the context of the rest).

  4. #4
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,920

    Default Re: Collapsible text (e.g. in FAQ)

    Try this

    Attached Files Attached Files
    Last edited by Egg Bramhill; 11 May 2017 at 07:06 PM.
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  5. #5
    Join Date
    Jul 2015
    Location
    Currently New York State
    Posts
    777

    Default Re: Collapsible text (e.g. in FAQ)

    Here is a youtube video that Roberto Matthews had done for setting up the code and working with Xara Designer to make an accordion style nav.

    https://www.youtube.com/watch?v=EADaFxVfcX0

    This may help explain what Egg has done.

    Ray

  6. #6
    Join Date
    Sep 2016
    Location
    Sofia, Bulgaria
    Posts
    53

    Default Re: Collapsible text (e.g. in FAQ)

    Yes, this is great to have, but we should have it directly from Xara.
    I thought the idea of Xara was to build a website, without the need of HTML/CSS skills

    At least the Xara should be able to display the result of the placeholder, instead of showing big pink/white squares

  7. #7
    Join Date
    May 2009
    Posts
    300

    Default Re: Collapsible text (e.g. in FAQ)

    Thanks Egg and Ray. I do agree with KamenPPavlov that something like this should really be integrated more closely into Xara.

 

 

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
  •