Freigeben über


Resize the contentPlaceHolder in the Master Page?

"How to resize the contentPlaceHolder in the Master Page?"

The content place holder size it determined by the size of the content in your content pages. If you look at the properties for the content placeholder, you will see that there are not size properties.

If you want to size the contents, try wrapping your inner content with a table of a particular size.
Here is another solution:
Insert the ContentPlaceHolder in a DIV tag and use the Style attribute to position as you wish: 
<div style="left: 100px; width: 100px; position: absolute; top: 100px; height: 100px;">
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
</asp:contentplaceholder>
</div>

Comments

  • Anonymous
    February 04, 2008
    &quot;How to resize the contentPlaceHolder in the Master Page?&quot; The content place holder size it

  • Anonymous
    November 24, 2010
    Content is not supported outside 'script' or 'asp:content' regions.

  • Anonymous
    May 24, 2011
    This script does not fulfil our requirements...

  • Anonymous
    January 04, 2013
    thankzz it workzz 0n visual studio 2010

  • Anonymous
    March 18, 2013
    It shows error in Visual Studio 12, because you can put any thing outside the content place holder... this doesn't work for me

  • Anonymous
    September 15, 2013
    Thank you very much.it's great, thanks for your help, good luck

  • Anonymous
    November 24, 2013
    This works like champ... thanks a lot!!! Keep posting!! :-)

  • Anonymous
    October 15, 2014
    Thank you very much, it works nicely :) in a single try :)

  • Anonymous
    March 29, 2015
    its perfectly working on visual studio 2013

  • Anonymous
    February 17, 2016
    How setting Display of the asp.net i mean that show of all forms

  • Anonymous
    March 13, 2016
    Putting it inside a table tag <table><asp...><table/> works for me