CSS Style for ListView

I have a ListView that displays data 3 columns in a row using this style for each of the columns.

<div style="float:left;width: 294px;margin-left: 6px;margin-top: 6px;">

Open in new window


It looks great until I change the paging to add more than 3 columns. In my example, the first column is longer than the second and third, so the 4th column prints in the second column instead of below the first column.

CSS style wrong
I tried counting to my 4th item and adding this before the 4th item:
<div style="clear: both;"></div>

Open in new window

But it did nothing.

What can I do to get the 4th item to always go below the one above in the left column?

thanks!
LVL 2
Starr DuskkASP.NET VB.NET DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GaryCommented:
Post your real code.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Starr DuskkASP.NET VB.NET DeveloperAuthor Commented:
        <telerik:RadListView ID="repTrainingCourseWorkshopModule"
            AllowPaging="True" ItemPlaceholderID="ListViewHolder" DataKeyNames="TrainingCourseWorkshopModuleId" runat="server">
            <ItemTemplate>
                <div style="float: left; width: 294px; margin-left: 6px; margin-top: 6px;">
                    <asp:Label ID="lblWorkshopName" runat="server"></asp:Label>
                </div>
            </ItemTemplate>
 </telerik:RadListView>

Open in new window

0
GaryCommented:
I meant the rendered html.
0
Starr DuskkASP.NET VB.NET DeveloperAuthor Commented:
I fixed it by using tables instead of css. Thanks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.