Content Place Holder Width

  • Thread starter Thread starter Rene
  • Start date Start date
R

Rene

I have a master page where I would like to be able to resize the width of
the ContentPlaceHolder.

Once the Content Place Holder control has the with that I want, I don't want
it to change even if the browser is resized.

Is it possible to accomplish this?
 
As far as I know, ContentPlaceHolder is just that - a placeholder for what
you decide to put in it. You determine the size via the CSS properties of the
containing DIV or PANEL that you eventually attach to it.
Peter
 
Thanks Peter,

I started doing what you suggested and its working nicely, the only thing
that I don't like is that I have to basically use a Panel or Div on every
single page that uses the master page, this seems to defeat the purpose of
the master page.

If I was able to resize and set some properties (alignment, back color etc)
on the ContentPlaceHolder control, then I wouldn't need to add a Panel or
Div on each of the page that uses the master page, I could simply start
inserting controls straight up on the page... Oh well, no big deal.

I am still new to ASP so maybe I can do what I want using CSS like you
suggested and don't have to worry about setting Div or Panel properties ....
time to research some more.

Thanks.
 
Good idea but it didn't appear to work, for now its ok, I just want to get
the website done and then tweak it as I learn more about ASP.



Thanks for the help.
 
Back
Top