Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
XML
I have code


<pre><pre lang="HTML"></pre><ul class="ulclass">
<li>asd</li>
<li>asd</li>
<li>asd</li>
<li>asd</li>
<li>asd</li>
<li>asd</li>
<li>asd</li>
<li>asd</li>
</ul></pre>


ulclass has properties for li  as


<pre><style>
.ulclass{margin:5px 0 0;display:inline-block;width:100%;}
.ulclass li {float:left;display:block;width:100%;font-size:1em;border-bottom:1px solid #ccc;margin:0 0 20px;padding:0 0 20px;}

</style></pre>


Am lising li using a datalist

as

<pre lang="c#"><asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1"   OnItemDataBound="DataList1_ItemDataBound" meta:resourcekey="DataList1Resource1" >
<ItemTemplate>

<li> <%#Eval("Name")%</li>>
</ItemTemplate>
</asp:DataList></pre>

But am not getting the property of li because it is inside the datalist.. How can i get the css property of li?? Can anyone help


Aswathi

Posted
Comments
Sergey Alexandrovich Kryukov 21-Feb-14 0:41am    
What do you mean by "getting the property"? And what's the difference, inside list or list, or any other element?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900