Click here to Skip to main content
15,882,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am using datalist to view the data in webpage. but datalist create a table itself so i have problem to view the as my requirements. I actually display image in left of the page then using datalist to display details of the news. I need to start the News right of the image but it start below the image.

please any one help me. what is the wright procedure to do that.

Thanks in advance

The best way is to give the datalist an absolute position such that it comes over the image
Share this answer
use css. wrap the image in a div and do a float: left on that div. Wrap the datalist in a different div and do a float: left on that div as well. You'll need to make sure that the two divs together aren't wider than than whatever container their in or the datalist will still drop down under the image.
Share this answer
BobJanova 1-Jun-11 7:18am    
You can actually apply float directly to img tags, and I think to table tags as well.

I don't believe you need to float the datalist, just the image.

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