New answers tagged

0

I am guessing you're using a Modern site where changing site design via CSS is not supported by default. However, there are workarounds such as writing your own custom SPFx extension or installing already built 3rd party SPFx web parts. After you set up support for custom CSS, add this to the file: .ms-MegaMenu-gridLayoutItem .ms-Menu-section{ margin-...


1

The following example for your reference. CSS style: <style type="text/css"> div[class^='content-']{ background-color: green !important; } div[class^='ButtonCard root-']{ background-color: green !important; } </style> jQuery code: <script type="text/javascript" src="https://code.jquery.com/jquery-3.4.1.min.js"></script> &...


1

Try this, it works for me .ms-vh-div[displayname='Title'] { width: 450px; }


1

Assuming there is valid justification in your unspecified backstory of why you are reformatting with jQuery instead of using the native XSL in the Content Query: You should use the jQuery .each() (see jquery docs) method to perform an operation on each selected item. Each instance call of the loop makes the this keyword a reference to the currently ...


1

As per my understanding, SPFx webparts are responsive by design. So, most of the times you don't need to use bootstrap or media query. It is recommended to use Office UI Fabric React components (not compulsory) which is a responsive and simple for you to create web experiences by using the Office Design Language. Read more at Design considerations for ...


Top 50 recent answers are included