I am struggling to apply CSS to an HTML generic control like <UL>
and <LI>
with the attribute runat="server"
in ASP.NET. Specifically, I need to target the <li>
element located within a master page from a content page. Once I locate this control, my goal is to style it using CSS.
<ul id="mainMenu" runat="server" style="width:350px;">
<li id="mainHome" runat="server"><a title="Home" href="#" class="home">Home</a></li>
<li id="mainManage" runat="server"><a title="Manage" href="#"
class="manage">Manage</a></li>
<li id="mainEnquiry" runat="server"><a title="Enquiry" href="#"
class="enquiry">Enquiry</a></li>
<li id="mainReport" runat="server"><a title="Report" href="#"
class="report">Reports</a></li>
</ul>