Michael Sterling
asked on
How do I use css to find my panel's ID?
If my HTML looks like this:
why does this:
#pnlHR
{
margin: 20px 0 0 0;
}
not work to add 20px to the top margin?
<%@ Page Title="" Language="C#" MasterPageFile="Site.master" AutoEventWireup="true"
CodeFile="UARForm.aspx.cs" Inherits="UARForm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<link type="text/css" rel="stylesheet" href="Styles/UARForm.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
<asp:Panel ID="pnlManager" runat="server">
</asp:Panel>
<asp:Panel ID="pnlHR" runat="server">
<div class="divHR" id="divHR">
<asp:Label ID="lblHRHeader" runat="server" Text="Approval Tracking:" />
</div>
</asp:Panel>
</asp:Content>
why does this:
#pnlHR
{
margin: 20px 0 0 0;
}
not work to add 20px to the top margin?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Won't have any effect for a panel.
ASKER
Thank you.
ASKER
Thanks for your input.
ASKER