Solved

Master Page contentplaceholder height

Posted on 2006-06-16
2
2,183 Views
Last Modified: 2008-01-09
Hello,

Is there anyway I can set height of contentplaceholder in my master page.

The reason being, if the content is less the footer is is not uniform across the application.

Pls help
0
Comment
Question by:sureshraina
2 Comments
 
LVL 20

Accepted Solution

by:
REA_ANDREW earned 500 total points
ID: 16920046
What you need to do is enlcose the contentplaceholder in a div and then saet the height of the div

<div id="ContentHolderDiv" style="height:400px;">
Content Place Holder Here
</div>
0
 
LVL 1

Expert Comment

by:jgroetch
ID: 16920277
What I did was add a nested <table> within the ContenHolder as follows (note the "height: 121px" in the first <td> ) :

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table border="1" cellpadding="0" cellspacing="0" width="100%" >
  <tr align="center">
    <td style="height: 121px; font-family: 'Times New Roman';">
    <table border="0" cellspacing="0" width="100%">

            ... additional <tr> and <td> tags here

    </table>
    </td>
  </tr>
 </table>

Good luck,
Bob
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question