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

geertgti premium asked 4 years ago


Expected behavior

Actual behavior

Resources (screenshots, code snippets etc.)


Mateusz Łubianka staff answered 4 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 premium commented 4 years ago

Thanks Mateusz for your answer. Greets.


Mateusz Łubianka staff commented 4 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

  • ForumUser: Premium
  • Premium support: Yes
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No