Skip to main content
Answer

Changing the shape of a button by CCS code

  • January 31, 2024
  • 4 replies
  • 172 views

Hello,

Does anyone know the CSS code for changing the shape of buttons to an elliptical shape??

I want them to be like that:

Thanks in advance,

Inessa

Best answer by lrnlab

sure...here you go:

 

/* ************************* */

/* Rounded Edges for Widgets */

/* ************************* */

.pages-widget-page .single-widget *:not(.title):not(.ui-carousel-title):not(.ui-text-link):not(.ui-card-title):not(.ui-typography-heading-5):not(.subtitle):not(.dropdown-head) {

border-radius: 10px;

}

/* ************************* */

/* Rounded Edges for Buttons */

/* ************************* */

#doc-layout-page-content button.mdl-button {

border-radius : 100px;

}

 

4 replies

lrnlab
Hero III
Forum|alt.badge.img+10
  • Hero III
  • Answer
  • January 31, 2024

sure...here you go:

 

/* ************************* */

/* Rounded Edges for Widgets */

/* ************************* */

.pages-widget-page .single-widget *:not(.title):not(.ui-carousel-title):not(.ui-text-link):not(.ui-card-title):not(.ui-typography-heading-5):not(.subtitle):not(.dropdown-head) {

border-radius: 10px;

}

/* ************************* */

/* Rounded Edges for Buttons */

/* ************************* */

#doc-layout-page-content button.mdl-button {

border-radius : 100px;

}

 


  • Author
  • Novice III
  • January 31, 2024

Thank you very much for help.!!!!

It works! 

Maybe you can tell me how to remove the white bar that says HOME PAGE?

 

Thanks again for all the help.

Inessa


lrnlab
Hero III
Forum|alt.badge.img+10
  • Hero III
  • January 31, 2024

lol sorry that’s as much as I know. 


  • Newcomer
  • February 15, 2024

Thank you very much for help.!!!!

It works! 

Maybe you can tell me how to remove the white bar that says HOME PAGE?

 

Thanks again for all the help.

Inessa

 

You can use this code: 

/*Remove page title header bar*/

doc-layout-title-bar

{

display:none;

}

It will remove it for all pages though!