According to your description, I make a sample use div and class, it show the result like table, here is the sample code, but I am not clear why not use table, I think it is more easy than use div combine with CSS.
I am not sure where you want to use scroll bar, I make a sample about how to use vertical scroll bar in div, you could try to add it through your needs.
<div style="overflow:auto; width:100px;height:100px;">
here is some text<br/><br/><br/><br/><br/><br/><br/><br/>
here is some text
</div>
If this reply can not solve your problem, please le me know.
Best Regards,
Eric Du
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
3 Points
415 Posts
Help in constructing html inside repeater with vertical scroll bar
Dec 27, 2016 05:23 PM|suvo|LINK
I want to construct a html table shown below inside a repeater with div using css class not with table .plz help me out !!
Title
Image1 ProdName1 Price1
Quantity1
Image2 ProdName2 Price2
Quantity2
Contributor
2340 Points
807 Posts
Re: Help in constructing html inside repeater with vertical scroll bar
Dec 27, 2016 05:44 PM|codemovement.pk|LINK
you need to use DataBound event
check this link for detail to insert the HTML
Get more information: http://codemovement.pk
Thanks,
Member
3 Points
415 Posts
Re: Help in constructing html inside repeater with vertical scroll bar
Dec 28, 2016 06:28 AM|suvo|LINK
I know repeater logic .I can construct the html with table tr td.I need to sonstruct the html with div just please give me some idea.
Contributor
6730 Points
2715 Posts
Re: Help in constructing html inside repeater with vertical scroll bar
Dec 28, 2016 08:55 AM|Eric Du|LINK
Hi suvo,
According to your description, I make a sample use div and class, it show the result like table, here is the sample code, but I am not clear why not use table, I think it is more easy than use div combine with CSS.
Result:
I am not sure where you want to use scroll bar, I make a sample about how to use vertical scroll bar in div, you could try to add it through your needs.
If this reply can not solve your problem, please le me know.
Best Regards,
Eric Du
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.