function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ishan K SharmaIshan K Sharma 

Show list element in two colums

Hi

 

Ihave list which i want to show in two columns only.

Suppose My list have 1,2,3,4,5,6

 repeater display like this

1                                

2                                 

3        

4

5

6

 

I want layout like ..

 

1            2

3            4

5            6

 

Thanks & Regards

Ishan Sharma

amilawamilaw

<ul class="myUl">

<li>Item-1</li>
<li>Item-2</li>
<li>Item-3</li>

<li>Item-4</li>
<li>Item-5</li>
<li>Item-6</li>

</ul>
<style>
ul.myUl li {
float:left; width:50%;
}
</style>

 

Relace <li> s with

<apex:repeat>

       <li>{!value}</li>

</apex:repeat>