Display tag: align one column differently

Use style=”text-align:right;” on the column to be aligned on the right:

<display:table name=”orders” sort=”list” defaultsort=”2″ defaultorder=”descending” partialList=”false” size=”${size}” pagesize=”20″ requestURI=”” export=”false”>

<display:column title=”Order ID” property=”id” sortable=”true”/>

<display:column title=”Shipping” property=”shippingDate” format=”{0,date,dd/MM/yyyy}” sortable=”true”/>

<display:column title=”Total” property=”total” sortable=”true” style=”text-align:right;”/>



One thought on “Display tag: align one column differently

  1. Subashchandrabose says:


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: