question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can you add specific CSS classes to specific elements created in the survey to be able to target and customize them?

See original GitHub issue

Are you requesting a feature, reporting a bug or ask a question?

I’m requesting a feature enhancement. I’d like to be able to give unique styling to elements like required questions, and the different types of buttons (previous, next and complete). But without specific CSS classes associated with them, I have to work very hard to target those elements.

What is the current behavior?

Currently these elements are created without specific CSS classes.

What is the expected behavior?

I would expect that these elements would have specific CSS classes associated with them.

How would you reproduce the current behavior (if this is a bug)?

Provide the test code and the tested page URL (if applicable)

Tested page URL:

Test code

your_code_here

Specify your

  • browser: Chrome
  • browser version: 58.0.3029.96 (64-bit)
  • surveyjs platform (angular or react or jquery or knockout or vue): jquery
  • surveyjs version: 0.12.13

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jyclamcommented, Oct 11, 2017

I would also like to know if it’s now possible to add an id/class to specific elements.

0reactions
tsv2013commented, Oct 12, 2017

@jyclam Probably this example can help you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can you add specific CSS classes to specific elements ...
I'm requesting a feature enhancement. I'd like to be able to give unique styling to elements like required questions, and the different types ......
Read more >
Precise Targeting with CSS Selectors | Medium - Carson Ford
CSS is the language of applying styling to HTML. Learn how to target even the hardest to reach elements with this guide to...
Read more >
How to Add Custom CSS Classes to WPForms
To add a custom CSS class name for either option, open the form builder and go to Settings » General. From here, go...
Read more >
Lesson 1: Understanding ID and Class in CSS
Lesson 1: Understanding ID and Class in CSS. Overview. So far you have added style to various elements in your portfolio page, but...
Read more >
How To Modify Attributes, Classes, and Styles in the DOM
In this tutorial, we will learn how to further alter the DOM by modifying styles, classes, and other attributes of HTML element nodes....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found