Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to adjust introjs-tooltip width using css

How to make a specific introjs tooltip width longer? I’m able to change the text color using css but changing the width is not working.

CSS:

.customTooltip * {
    color: #4a4a4a;
    font-size: 18px;
}

.customTooltip .introjs-tooltip-title {
    color: #0a41c9;

}
//Not working
.customTooltip .introjs-tooltip {
    min-width: 500px;
}

IntroJs:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

const intro = introJs();
intro.setOptions({
  steps: [{
      title: 'Title',
      intro: 'Long Intro',
      tooltipClass: 'customTooltip'
    }
  ]
})

>Solution :

did you want to resize the parent div?

you can try

.customTooltip {
  min-width: 500px;
}

directly, and your can add !important too.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading