New answers tagged

1

Try using below code: .ms-core-pageTitle, .ms-core-pageTitle span a { text-align: center !important; } Or #pageTitle, #pageTitle a { text-align: center !important; } Also try creating HTML file and put this code inside <style type="text/css"></style> and then reference it in CEWP. Reference: How to add HTML file in content editor ...


0

There are few options you can pick. Reduce the size of the tiles by half Disable horizontal scrolling Both of the above I can't find the sources for this (not my code), but I have both options stored safely here so I will post them. Sources added. The files are too big to share here so I will place external links. PromotedLinksHalfSize.dwp (CEWP) SOURCE ...


0

You can put any inline CSS style and inline javascript code to a Page layout as you can do it for regular HTML page. For example inline style is <style> ... </style> and inline javascript is <script> ... </script>


0

I found a second solution for this problem. Use Inspector from Firefox (click F12) & inspect your page like this: Now you have the div variable of this field. On my SharePoint it is called DeltaPlaceHolderMain. The DeltaPlaceHolderMain just needs to be placed correctly. My sideNavBox has 350px width: #sideNavBox { width:350px; } And my ...


1

It is because when you publish the page your java script is not getting loaded. add below code in your script tag. > <script type="text/javascript"> $(document).ready(function() { > SP.SOD.executeFunc('sp.js', 'SP.ClientContext', myDesign); }); > function myDesign(){ // your code goes here } </script> Write your logic ...


0

Since these pages were set up as New/Modern (Post 2016) pages this technique does not work for those pages.


0

The issue is that these were NEW (After 2016) pages so the CSS was not being used by Microsoft at all.


0

Please try below steps: Add a content editor web part on View Page. Insert below content into it. <style type="text/css"> .ms-viewheadertr { //your style } </style> .ms-viewheadertr class works to customize column header.


Top 50 recent answers are included