kosta.dani
kosta.dani

Reputation: 457

Css my custom buttons in Mathjax- CkEditor

Where should i write the css to edit my buttons in Mathjax ckEditor? I have read the documentation but i can't find a way.

Where are html and css files stored?

My buttons were created in Mathjax.js with this code:

{
  id: 'button1',
  type: 'button',
  button: 'button1',
  label: 'button1',
}

enter image description here

Upvotes: 1

Views: 92

Answers (1)

Xahed Kamal
Xahed Kamal

Reputation: 2223

I see you gave an ID (button1) to the button with a label (button1). You can apply CSS using the ID this way -

#button1{
     // Your css here
}

But, by default that button will have some CSS applied already. So if you want your CSS to override those CSS, you'll have to link your CSS file after the CSS file of Mathjax. Otherwise, you'll have to use !important to force override the CSS of the button.

Upvotes: 1

Related Questions