CSS Classes

NGSurvey provides a wide range of CSS classes that can be used to fully customize the layout of your forms.

Below is a list of all classes used by ngSurvey to display its user interface and which you can re-use to customize it.

Wrappers / containers

/*
  The body of the survey form, this class is directly attached to 
  the html body element 
  */
  .ngs-survey-body {}
  
  /*
  Wrapper that holds the survey form page
  */
  .ngs-survey__wrapper {}
  

Page content

/*
  Page container for survey header / questions / footer 
  */
  .ngs-survey__page {}
  
  /*
  Applied if an RTL language is selected by the respondenb 
  */
  .ngs-survey__page--rtl {}
  
  /*
  Holds the page content (questions or thanks message(.ngs-survey__thanks-page-message))
  */
  .ngs-survey__page-content-container {}
  
  /*
  Default thank you message formatting 
  */
 .ngs-survey__thanks-page-message {}

  /*
  Set if a header is displayed on the survey (eg: header for language selection)
  */
  .ngs-survey__page-content-container--header {}
  
  /*
  Set if  header is hidden  on the survey (eg: header for language selection)
  */
  .ngs-survey__page-content-container--no-header {}
  
  /*
  Footer container that holds buttons, progress etc..
  */
  .ngs-survey__page-footer {}
  
  /*
  Footer container for actions (buttons)
  */
  .ngs-survey__page-footer-actions-container {}
  
  /*
  Footer container buttons (submit, save progress etc..)
  */
  .ngs-survey__page-footer-actions-container button {}
  
  /*
  Wrapper around the progress bar or current page / total page of the survey
  */
  .ngs-survey__page-footer-progress-wrapper {}
  
  
  /*
  The page header allows to set the top background that is located 
  behind the form page holding the questions
  */
  .ngs-survey__page-header {}
  
  /*
  Select control dropdown of languages if multi languages is enabled 
  */
  .ngs-header__language-select-wrapper {}
  

Buttons

Page navigator

Progress bar

Questions

Matrix questions

Question sections

Answers

Answers labels

Sliders

Ranking

Constant sum

NPS Question

CEST / CSAT Question

Errors

Security

Google Material

Following classes will override the default google material component used in ngsurvey's forms. The list is not exhaustive as it only lists the one that are overridden by ngSurvey, you can of course also override any standard material component classes not listed below

Last updated

Was this helpful?