Is there a way to create a custom gradient in Bootstrap


Topic: Is there a way to create a custom gradient in Bootstrap

geertgti pro premium asked 5 years ago

Expected behavior

Actual behavior

Resources (screenshots, code snippets etc.)


Mateusz Łubianka staff answered 5 years ago

Hi @geertgti,

Like you can see in Gradients docs: https://mdbootstrap.com/docs/jquery/css/gradients/ There isn't any supported option to create a custom gradient. But you can do it by your own:

.my-gradient {
background: linear-gradient(40deg, #fromHex, #toHex) !important;

}

Best,


geertgti pro premium commented 5 years ago

Thanks Mateusz for your answer. Greets.


Mateusz Łubianka staff commented 5 years ago

I'm glad I could help.

Best,


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No