How to move controls freely around the page?
Is there a setting to be able to move controls freely around the page as I was watching a video tutorial where the person did this but didn't mention it. I can't get my content place holder on my master page to sit to the right of the menu.
My code is as follows.
Code:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="site.master.cs" Inherits="site" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Image ID="Image1" runat="server" ImageUrl="Images/casafelipe.gif" Style="left: 13px; top: 10px" /><br />
<div style="width: 1px; height: 299px; color: #ffffff; background-color: #0a50a1; clear: left;" id="sidebar">
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
<asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1" Font-Bold="True"
Font-Names="Arial" ForeColor="White" Height="115px" StaticDisplayLevels="2" Width="135px">
</asp:Menu>
</div>
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
</asp:contentplaceholder>
</div>
</form>
</body>
</html>
Re: How to move controls freely around the page?
Hi
You could put in a table from the HTML part of the toolbar
Put the menu in one cell and the contenholder in the other this will make your webpages hold togather better.
Or set the style properties in the outdiv to
In your code add the following to the outer div<div id="DIV1" style="POSITION: absolute" >
using the properties window. -Select style then the Position tab