How to fix web part zone width?

I would like to fix the web part zone width on a SharePoint page such that it is not overridden by any web part. Irrespective of me adding a smaller or larger webpart, the zone width should remain the same. I am ok if that introduces scroll bars. I tried giving the zone width, but currently the Content Editor web part width overrides that (a user gave a larger width in the Appearance section than the web part zone width).
Is there a way to do that?
ThanksSanjeev Garg [MSFT]

Hi Sanjeev,
Do you need this done in a particular page or is it for a lot of pages in your site? Either way, you can add custom CSS to make it a fixed width. For example:
#your_webpart_zone_id
       width: 400px;
       overflow: auto;
The overflow statement above should render scrollbars within the web part zone if any web part width is more than the web part zone width.
If you need this for just few pages, then I'd recommend that you add a CEWP on those pages and add the above CSS through the Source Editor of the CEWP. But, if you need this on every page, then you can add the custom css in your master file to affect all pages.
Use a DOM inspector to find the id or class of the web part zone easily. I hope this answers your question.
Pman
http://www.pmansLab.com/

Similar Messages

  • How to add web part zone?

    I am testing SP 2010 and trying to add a webpartzone to the page. So I go into SPD and edit the page. However I can only add new webparts not another webpartzone. The option is greyed out. So the only webpartzone I see is "Rich Content" when viewed on the
    web. The page is based on v4.master. But even if I try and edit v4.master, I do not have WebPartZone enabled....I guess I am still new and learning....can someone tell me what I need to do?
    Thanks in advance,
    Jacob. 

    Hi
    just add a new div in the page, then go to designer mode, now the button will be visible to add web part zone.
    Alternate is that, just copy and paste the following code in the aspx page
    <div>
    <WebPartPages:WebPartZone
    runat="server"
    FrameType="TitleBarOnly"
    ID="Left"
    Title="loc:Left"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone>
    </div>
    It will work
    Muhammad Kamran Rafi
    [email protected]
    SharePoint Developer
    Xelleration LLC

  • How to make the web part and web part zone smaller?

    Hello Community
        On WS2012 running SharePoint 2013 Server when you edit a page
    the web part zone is big and when you add the web part the web part 
    is big also.
        So the question is how to you make web parts and web part zone
    smaller?
        Thank you
        Shabeaut

    Hi,
    According to your description, my understanding is that you want to make the web part zone and web part smaller.
    When you edit a page, you could change the height and width of the web part in Edit Web Part -> Appearance by typing in the Height and Width field. The size of the web part zone changes with the web part.
    Best Regards,
    Dean Wang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Web Part Zone "ID" not coming down to HTML

    I have added web part zones to a page layout using sharepoint designer.. I used snippets to get a web part zone and paste it into my html page layout file. I gave my web part zone a custom id for tabs that I am trying to set up. When I render my page the
    zone is there but it does not get the ID that I am registering in the code, it doesn't get any id.
    HTML in Page Layout:
    <div data-name="WebPartZone">
    <!--CS: Start Web Part Zone Snippet-->
    <!--SPM:<%@Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
    <div xmlns:ie="ie">
    <!--MS:<WebPartPages:WebPartZone runat="server" ID="TabbedWebPartZone" TitleBarVerbButtonType="Link" AllowPersonalization="False" FrameType="TitleBarOnly" Orientation="Vertical" WebPartVerbRenderMode="TitleBar">-->
    <!--MS:<ZoneTemplate>-->
    <!--DC: Replace this comment with default web parts for new pages. -->
    <!--ME:</ZoneTemplate>-->
    <!--ME:</WebPartPages:WebPartZone>-->
    </div>
    <!--CE: End Web Part Zone Snippet-->
    </div>
    Code in ASPX:
    <div data-name="WebPartZone">
    <div>
    <WebPartPages:WebPartZone runat="server" ID="TabbedWebPartZone" TitleBarVerbButtonType="Link" AllowPersonalization="False" FrameType="TitleBarOnly" Orientation="Vertical" WebPartVerbRenderMode="TitleBar"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone>
    </div>
    </div>
    Rendered HTML:
    <div data-name="WebPartZone">
    <div>
    <div class="ms-webpart-zone ms-fullWidth">
    <div id="MSOZoneCell_WebPartWPQ3" class="s4-wpcell-plain ms-webpartzone-cell ms-webpart-cell-vertical ms-fullWidth ">
    <div class="ms-webpart-chrome ms-webpart-chrome-vertical ms-webpart-chrome-fullWidth ">
    <div WebPartID="00d08129-ccbd-49ef-8b82-1165a0c690c2" HasPers="false" id="WebPartWPQ3" width="100%" class="ms-WPBody noindex " allowDelete="false" style="" ><div componentid="ctl00_ctl34_g_00d08129_ccbd_49ef_8b82_1165a0c690c2_csr" id="ctl00_ctl34_g_00d08129_ccbd_49ef_8b82_1165a0c690c2_csr"></div><noscript><div id="ctl00_ctl34_g_00d08129_ccbd_49ef_8b82_1165a0c690c2_noscript">It looks like your browser does not have JavaScript enabled. Please turn on JavaScript and try again.</div></noscript><div id="ctl00_ctl34_g_00d08129_ccbd_49ef_8b82_1165a0c690c2">
    <div class="ms-webpart-chrome ms-webpart-chrome-fullWidth ">
    <div class="ms-webpart-chrome-title" id="WebPartWPQ7_ChromeTitle">
    <span title="" id="WebPartTitleWPQ7" class="js-webpart-titleCell"><h2 style="text-align:justify;" class="ms-webpart-titleText"><nobr><span></span><span id="WebPartCaptionWPQ7"></span></nobr></h2></span>
    </div><div WebPartID="00000000-0000-0000-0000-000000000000" HasPers="true" id="WebPartWPQ7" width="100%" class="ms-WPBody ms-WPBorder noindex ms-wpContentDivSpace " OnlyForMePart="true" allowDelete="false" style="" ><div componentid="ctl00_ctl34_g_00d08129_ccbd_49ef_8b82_1165a0c690c2_ctl00_csr" id="ctl00_ctl34_g_00d08129_ccbd_49ef_8b82_1165a0c690c2_ctl00_csr"></div><noscript><div id="ctl00_ctl34_g_00d08129_ccbd_49ef_8b82_1165a0c690c2_ctl00_noscript">It looks like your browser does not have JavaScript enabled. Please turn on JavaScript and try again.</div></noscript><div id="ctl00_ctl34_g_00d08129_ccbd_49ef_8b82_1165a0c690c2_ctl00">
    </div><div class="ms-clear"></div></div>
    </div>
    </div><div class="ms-clear"></div></div>
    </div><div class="ms-PartSpacingVertical"></div>
    </div><div id="MSOZoneCell_WebPartWPQ4" class="s4-wpcell-plain ms-webpartzone-cell ms-webpart-cell-vertical ms-fullWidth ">
    <div class="ms-webpart-chrome ms-webpart-chrome-vertical ms-webpart-chrome-fullWidth ">
    <div WebPartID="3394b689-f05f-4cc7-a403-e4a4a6076229" HasPers="false" id="WebPartWPQ4" width="100%" class="ms-WPBody noindex " allowDelete="false" style="" ><div componentid="ctl00_ctl34_g_3394b689_f05f_4cc7_a403_e4a4a6076229_csr" id="ctl00_ctl34_g_3394b689_f05f_4cc7_a403_e4a4a6076229_csr"></div><noscript><div id="ctl00_ctl34_g_3394b689_f05f_4cc7_a403_e4a4a6076229_noscript">It looks like your browser does not have JavaScript enabled. Please turn on JavaScript and try again.</div></noscript><div id="ctl00_ctl34_g_3394b689_f05f_4cc7_a403_e4a4a6076229">
    <div class="ms-webpart-chrome ms-webpart-chrome-fullWidth ">
    <div class="ms-webpart-chrome-title" id="WebPartWPQ8_ChromeTitle">
    <span title="" id="WebPartTitleWPQ8" class="js-webpart-titleCell"><h2 style="text-align:justify;" class="ms-webpart-titleText"><nobr><span></span><span id="WebPartCaptionWPQ8"></span></nobr></h2></span>
    </div><div WebPartID="00000000-0000-0000-0000-000000000000" HasPers="true" id="WebPartWPQ8" width="100%" class="ms-WPBody ms-WPBorder noindex ms-wpContentDivSpace " OnlyForMePart="true" allowDelete="false" style="" ><div componentid="ctl00_ctl34_g_3394b689_f05f_4cc7_a403_e4a4a6076229_ctl00_csr" id="ctl00_ctl34_g_3394b689_f05f_4cc7_a403_e4a4a6076229_ctl00_csr"></div><noscript><div id="ctl00_ctl34_g_3394b689_f05f_4cc7_a403_e4a4a6076229_ctl00_noscript">It looks like your browser does not have JavaScript enabled. Please turn on JavaScript and try again.</div></noscript><div id="ctl00_ctl34_g_3394b689_f05f_4cc7_a403_e4a4a6076229_ctl00">
    </div><div class="ms-clear"></div></div>
    </div>
    </div><div class="ms-clear"></div></div>
    </div>
    </div>
    </div>
    </div>
    Why won't my Web Part Zone's ID register down to the HTML that is rendered?
    I've tried adding the ID on the data-name: Web part zone div but that also does not work.
    Any suggestions?
    I've seen several references online where people have custom ID's like mine on their Web Part Zones... what am I doing wrong :/

    You are placing inside webpart zone right,
    "Web Part infrastructure automatically sets this value" see this link
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webpartpages.webpart.id.aspx
    Hope this helps!
    MCITP: SharePoint 2010 Administrator
    MCTS - MOSS 2007 Configuring, .NET 2.0
    | SharePoint Architect | Evangelist |
    http://www.sharepointdeveloper.in/
    http://ramakrishnaraja.blogspot.com/

  • Center list web part within a web part zone

    How do you center web parts within a web part zone? I have a web part zone within a <td>, and the cell is centered. Within the cell I have a table that is centered, which contains the web part zone. However, the web parts within the zone remain left
    aligned. What am I missing? Thanks.

    Hi ,
    I did a test using the web part page template, there is a center web part zone. If I added a web part in the center web part zone and added another web part in the center right web part zone, save the page, the web part displayed in left. If I added a web
    part into the center left zone, the web part within the center web part zone displayed in center . The location of the center web part zone is comparative with others.
    If you want to keep the web part zone in center, you can use css style to modify it.
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to fix the column header width in BEx or WAD

    hi there!
    how to fix the column header width in BEx or WAD. because, depends on the column data, the column size varies. i want to fix the size so that i can maintain the consistency through out the report.
    thanks!
    Vam.

    Dear Vam,
    you can easily do that with css, search the source code of the executed web template for the td tag which is around your coloumn header, remember the style sheet class name it is ´displayed as class= in the td tag.
    Now you can add this code the beginning of your web template:
    </style>
    This will only work in Web.
    Regards
    Marcus

  • Web Part Zone personalization

    Using SharePoint 2013;
    Is there an option out of the box to personalize Web Part Zone like we have for Web Parts. We have a requirement to create a Web Part page in which users can personalize by adding the Web Parts they wanted to see.
    Scenario: User 1 login in to the site and adds WebPart1 to this page & User 2 adds WebPart2 to the same page. Each users should not see the Web Part that are added by other users.
    --Cheers

    Ok, thanks for your replies
    I'm planning to go with OOB option with few customizations. Below is the plan, please suggest me if you have any ideas
    Personalize this Page - On pages the site contributors can add the Web Parts to create a personal view of the page. For example, a Web Part can be added to a page and viewable by only those users. When users personalize a page, others will
    continue to view the public version or the shared version, or their own personalized version. Once a page is personalized, we have an option to view either your personal version or the shared version.
    Create web part page “My Page”
    Check 'Add/Remove Personal Web Parts' & 'Update Personal Web Parts' permission level at Web Application level and user group level in order to enable personalize this page menu in the site for the user.
    Restrict personal page from showing all web parts in the Add Web Part list by assigning appropriate permission to Web Part Gallery. As this is admin defined as per our requirement
    Enable Personalize this Page option only to the custom “My Page”. Hide this menu for all the other pages.
    --Cheers

  • How to publish Web parts page in Share point server 2010

    Hi All,
    I have created Web parts page in share point server 2010. it working fine but it always displayed with Ribbon controls and other tool bars, if there any possibility to publish web parts page, here user able to view content only not editing option.
    I already enabled 'SharePoint Server Publishing Infrastructure' in site collection level and 'SharePoint Server Publishing' in site level.
    Here i only find publish menu for pages not for web parts page.
    Kindly advice how to publish web parts pages.
    Thanks,
    Selvakumar.S

    Just remove Edit permission of users on that page, then they wont be able to see edit options
    http://office.microsoft.com/en-in/sharepoint-help/what-is-permissions-inheritance-HA102772762.aspx
    http://office.microsoft.com/en-in/sharepoint-foundation-help/edit-permissions-for-a-list-library-or-individual-item-HA101805400.aspx
    If this helped you resolve your issue, please mark it Answered

  • Unable to add web part in the web part zone

    We have a SharePoint 2010 site collection in which except the home page all other pages are working normally. When we try to click on 'Add a Web Part' button on the home page we won't get the web part gallery and hence we are unable to add any web parts
    on the home page.
    We checked the permissions, it is fine I have web application level full control. 
    Home page is not checkout to any body.  All other site collections have good home pages where we are able to add web parts.
    Please let me know how to fix this issue.
    Thank you,
    smith

    Hi Victoria Xia,
    Below are my answers to your questions
    Check the page in SharePoint Designer to see if there are any customization on the page.
               There are no customizations on the page. It just has Out of the Box web parts which are already      added.
         2. Did this issue occur with other user accounts?
               Yes, issue is there for all the user accounts.
         3. Set another page as home page to see if the issue still occurs.
             I have set another page as home page but didn't see any issue.
         4. Was there any error when editing the home page?
             No, I don't see any errors while editing the home page.
    smith

  • How to create web part and retrieve data from a scheduled task?

    Hi,
    I am new to SP, so I think you can guide me. I have  a scheduled task which gets currency data. I wonder if there is  way to show them on a web part. There will be currnecy names, buy and sell data on this web part. I would be glad if you can show
    me step by step how to create this web part on SP.
    Thanks in advance.
    Best Regards.

    Hi,
    thanks for the reply so I advice on that case to write code in the task schedule to write the data into a SharePoint list, if the scheduled task is on the same server as SharePoint then use Object model if it on another server then use client object model
    to write data to a list
    then on SharePoint site you will just add out of the box web part to display the list where you stored the data
    to save data using Object model:
    http://msdn.microsoft.com/en-us/library/office/ms467435(v=office.14).aspx
    http://www.go4sharepoint.com/Code/insert-list-item-sharepoint-object-286.aspx
    to save data using client object model
    http://www.codeproject.com/Articles/268196/SharePoint-Client-Object-Model
    Kind Regards,
    John Naguib
    Technical Consultant/Architect
    MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
    Please remember to mark your question as answered if this solves your problem

  • How to fix BW Query column width globally before query execution?

    Dear Experts,
    Regarding the BW Query run in Business Explorer, the width of the first column A of the result displayed in Excel is usually based on the width of the query title.
    I know that we can adjust the column width in Excel: right click on the column and change the properties as "Do not adjust column width" on refresh. But how can I change and fix this width globally (regardless of the actual length of the cells) inside the analyzer during query design, and before the result coming out in Excel? I want the change is on the "Change query (global definition)", and not inside the Excel.
    Thanks & regards,
    James
    Edited by: OSS support CCS on Feb 9, 2011 10:15 AM

    Hi,
    The column width is determined by the Analyser at the runtime  and is taken by the settings done at Infoobject level in "Business Explorer tab". Like short text will have X width column.
    If you need to have fixed column with different from what is proposed by the system u need to save ur query as Woorkbook.
    or if u are displaying them in WEB ANALYSER then u can have report designer to control the formatting.
    Regards
    Ravish

  • How to fix Classic table column width / length fix ?

    Hi,
    I have a page for display purpose. In this page I am showing record.
    My requirement is to make Description column width fix. If data of description is huge then height will increase but not the length / width.
    Currently width property is 100%.
    Table is attached to VO.
    How to it ?
    Regards,
    Ajay

    Ajay ,
    I was looking into the two screen shots , i also had a close look at “Device Description” and “UDID " columns .
    I have also tried in my Jdeveloper it was not working . But it works fine if you change item style from styled text to
    message text input . I want you to try one more thing , since it work fine for message text input , change item style
    to message text input and set Read Only property to ' TRUE' and check .
    Keep size as same as you did before :
    Height :- 2
    Width :- 30
    Keerthi

  • How to fix the text field width wir=thout wrapping in obiee 11g

    Hi,
    In OBIEE 11g I want the text filed width should be fixed as 30 character, at the same time if the width beyond 30 characters it should not be wrapped.
    To achieve this we went to column properties and removed the wrap check box and in Additional Formatting Options section we set the width size as 30. But still if the text size is beyond 30 getting wrapped
    Please help me
    Thanks,
    Anilesh

    Hi,
    Yup..its really tricky one..u have play around changing the laft/right padding the additional format options
    Thanks
    Deva

  • How to fix, incorrect time zone adjustment from iCloud to iPhone Calendar?

    I entered a calendar event on iCloud using my PC.  The event is displayed an hour later on my iPhone. i.e (iCloud) Flight; 2:15pm --> (iPhone) Flight; 3:15pm.
    The Time Zone setting is correct (Eastern Daylight Savings) on both the PC and iCloud.
    I have had a similar issue when syncing calendar between Yahoo and iPhone.
    Any similar experiences? Can this be fixed?
    Thanks.

    I re-checked the iCloud timezone settings and found that it was set to "Eastern Standard Time" not Daylight savings time. Odd. I clicked on the map again and it changed to "Eastern Time".  I tried again and it seems to be working.  I am assuming that the "Eastern Time" timezone adjusts automatically.
    I haven't figured out the issue with Yahoo calendar yet. Any suggestions?
    I also followed up with Ralph Landry1's suggestion and Time Zone support is set to off. Thanks for the heads up.
    Additional threads, I viewed...
    https://discussions.apple.com/message/16441455#16441455
    https://discussions.apple.com/message/19246114#19246114

  • How to fix web configuration?

    Cannot open a webpage!
    run time error

    Hello,
    Have you tried this troubleshooting steps found in the link below,
    http://www.ni.com/getting-started/set-up-hardware/compactrio/troubleshoot-max
    Regards,
    KM

Maybe you are looking for

  • Smartform to PDF conversion

    Hi Experts , I am sending an e-mail aith a PDF attachment , the attachment contains a greeting card (BIT MAP file), When i find the mail , PDF is opening with error 'Drawing Error Occured'. Pls find the sample code ...           CALL FUNCTION V_FORM_

  • Process(m000) creation failed

    PROD DB 10.2.0.4 I got below error in the alert log file. For your information there are two databases which are interconnected and the data are transferring from each other using RIB . Error: DISTRIB TRAN 1dcd3.1053272173A4626D6C5C67083439F0BB17101B

  • CO-PA problem during Go-Live

    Hi experts, I have a problem during go-live related to posting to co-pa I have scheduling agreement. I don't want to post it in co-pa. I excluded my code for this order type (E), but when the user goes to create the scheduled lines, SAP posts to co-p

  • Access denied can't open my recent files

    I downloaded a trial version of pdf reader viewer DC and now when I try to access previous adobe files it sats error access denied, how do I go back to the version I had and access my files

  • JMS Support in Applet

    Can JMS be used in Applets send and recieve messages from EJB ?. I have read in JMS tutorial that Applets, however, are not required to support the JMS APIhttp://java.sun.com/products/jms/tutorial/1_3-fcs/doc/overview.html#1027335