how to center a web part in the center of sreen/web part zone
-
21-01-2021 - |
解决方案
Try the below CSS style in Script Editor Web Part
<style>
#SearchBox {
position: absolute;
left: 50%;
margin-right: -50%;
transform: translate(-50%, -50%);
}
</style>
Or
<style>
#SearchBox {
margin-left: 50% !important;
</style>
Note: In the second style, you will need to Increase or decrease percent manually based on your requirements.
Output