Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 339
  • Last Modified:

ContentPlaceHOlder Location

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
gdspeare
Asked:
gdspeare
2 Solutions
 
Kevin CrossChief Technology OfficerCommented:
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
 
sm394Commented:
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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now