Neil Knight
Neil Knight

Reputation: 48537

Formatting columns inside of an ASP Repeater

I'm using an ASP repeater on my page, and I want it to create a 3 column grid. In my HTML page, I use a class which sets the third column so that it fits. Basically, the first 2 columns have a margin-right of 28px so it spaces them nicely and then the third class removes the margin-right so that the columns fit.

Problem is, when this comes into the repeater, I can't use the third class and I get a 2 column result. Any ideas on how I can overcome this?

Upvotes: 0

Views: 315

Answers (2)

Neil Knight
Neil Knight

Reputation: 48537

I managed to resolve this without the use of a <table>. It turned out that the <form> didn't have enough width, so I amended this and it worked.

Upvotes: 0

gilly3
gilly3

Reputation: 91467

Use a <table>. I know, I know, we aren't supposed to use tables anymore, right? If you are displaying tabular data, you should use a table. If it's a "grid", that sounds like tabular data to me. Is it?

Upvotes: 3

Related Questions