If I have an excel web part and I would like to freeze the whole web part so that when I scroll down the list, the excel web part is still valuable, is this possible?

I have used the freeze column header (sticky header) for just that, column headers, however I would like a similar fix for an entire web part.

SharePoint 2013. IE10, no SharePoint Designer. I have to be able to be able to insert script or use a .js reference in a CEWP.


Try using the CSS positioning property position: fixed on the web part to keep it static on the page. You'll need to grab the ID of the web part using your browser's developer tools and then set the CSS property either directly in the CEWP or through a script.

Here's an example using CSS on a specific web part with the ID of MSOZoneCell_WebPartWPQ2 :


    #MSOZoneCell_WebPartWPQ2 {
        position: fixed;


Here's an example using jQuery on the same web part:

<script src="/location-of-your-jquery-file/jquery.js"></script>


    $(document).ready(function() {

        $("#MSOZoneCell_WebPartWPQ2").css("position", "fixed");



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.