Quantcast
Channel: setting the height of a ContentPlaceHolder
Viewing all articles
Browse latest Browse all 12

setting the height of a ContentPlaceHolder

$
0
0

Good Day .

I am currently designing a Web application with Microsoft Visual Studio. I am trying to resize a contentplaceholder in my master page.

For design reasons I want to contain the contentplaceholder in a <div> with scrolling if needed (overflow:auto); this system works perfectly when i give the<div> a precise height in pixel (for example: height:400px)

But because i want an extensible design for the page i would like to set the height of this <div> in % (for example height:60%). Sadly this doesn't work at all. The<div> seems to be stretching until it reach enough space to display the entire content of thecontentplaceholder.

Does someone knows a way to make it work ? 

Thank you. 

 


Viewing all articles
Browse latest Browse all 12

Latest Images

Trending Articles





Latest Images