Click here to Skip to main content
16,005,037 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I tried with the following code to give space between 2 rows of the datalist. No error but space not inserted. After Item template I included the code like..

XML
.Dt_RowSeparator { margin: 0px 0px 0px 0px; }

    </style>



   
<separatorstyle />
<separatortemplate>
    <h4 class="Dt_RowSeparator"></h4>
</separatortemplate>
Posted
Updated 25-May-16 2:03am

Below style should work

CSS
.Dt_RowSeparator

{
height: 2px;
margin: 5px auto 5px auto;
vertical-align: middle;
background-color:#E9E7E3;
}
 
Share this answer
 
HTML
<style type="text/css">
        .clear {
            padding-left:10px;
            padding-bottom:10px!Important;
        }
    </style>


add this under ItemTamplate
<SeparatorTemplate><div class="clear"></div></SeparatorTemplate>
 
Share this answer
 
Comments
CHill60 25-May-16 9:08am    
The OP has not been waiting for two years for this ... the post already has an accepted answer

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