Solved

ContentPlaceHOlder Location

Posted on 2008-10-26
2
331 Views
Last Modified: 2012-08-13
Hello -

I am trying to create a master page for my site.  On my master page, I have a treeview control and a contentplaceholder.  I can not find the property that will allow my contentplaceholder to line up to the right of my treeview.  It is displaying below it.  

Thanks for the direction
0
Comment
Question by:gdspeare
2 Comments
 
LVL 59

Accepted Solution

by:
Kevin Cross earned 250 total points
ID: 22808976
Here is an example of a simple 2 column layout.  
http://www.456bereastreet.com/lab/developing_with_web_standards/csslayout/2-col/

To answer you question, I would use layout div or other elements of that nature or you can use the same CSS code tagged directly to the id / css class of the tree view and content placeholder elements.  The problem there to be careful of is that ASP.NET element ids are changed for some elements when using master pages.

/kev
0
 
LVL 13

Assisted Solution

by:sm394
sm394 earned 250 total points
ID: 22809308
follow mwisa1 post
 in case you need specific ref try that
you can add more settings in div box style i.e Height:Auto; Width:200px  etc
you can also move these styles to css file and use them like class="leftCol"  or id="leftCol"
<div style="float:left;">
            <%--left column for menu--%>
            <div style="float:left;">
                <br />
                <asp:TreeView ID="TreeView1"  runat="server"  />
                </asp:TreeView>
            </div>
            <%-- right box for contents--%>
            <div style="float:left;">
                <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                </asp:ContentPlaceHolder>
            </div>
</div>
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

When designing and editing page layouts in inDesign, fonts can become messy without the help of paragraph styles. How many times have you re-read through a document you created and noticed a sentence in the middle of a paragraph happened to be a dif…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Learn how to automatically add page numbers in your next InDesign project. This can be very helpful in multi-page books and magazines that you are designing. Make sure your Pages window visible.:  In the document you wish to add page numbers to. Act…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now