Hoppa till huvudinnehållet

Center image in Display Form

Kommentarer

5 kommentarer

  • Ken Lyon

    Hi James,

     

    We don't expose style aspects such as that directly in the Form Editor, so it's not as obvious as you might have hoped. However, you can achieve this using the Inject CSS activity if you are deploying to a browser-based viewer. (This activity is not supported in Geocortex Mobile, as it does not use CSS.)

     

    Each form element is assigned a CSS class containing its Element ID when it's rendered on the page, so you can target the one image directly.

     

    For example, if your image has the Element ID of "image1", you could use this value for the content input to the Inject CSS activity:

    .gcx-forms-image1 { text-align: center; }

     

    0
  • Permanently deleted user

    Hi Ken,

     

    Sorry - Newbie to the GW5... I meant to ask, is this an activity/tool in the GW5 designer or is it a customization in the file - and if so, where would I find that file?

    Thanks again1

    0
  • Permanently deleted user

    "Inject CSS" is a build in Activity to GW5, you can search for it from the Designer Toolbox

    0
  • Ken Lyon

    I've attached an example workflow for reference. To open it, launch Workflow Designer then choose File > Import. Select the file from the downloaded location.

    0
  • Permanently deleted user

    Thanks Ken,

    I did get the InjectCSS activity working after your initial post and have been expanding on it since - works beautifully! Much apprecaited.

    James

    0

Du måste logga in om du vill lämna en kommentar.