Title: CSS id in pdb while loop
Last modified: March 4, 2018

---

# CSS id in pdb while loop

 *  [eljailer](https://wordpress.org/support/users/eljailer/)
 * (@eljailer)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/css-id-in-pdb-while-loop/)
 * Is it possible to add IDs for CSS layout in while loop?
    I created custom pdb_list
   template and I need to style each cell (or some cells) differently. Any help 
   would be greatly appreciated.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/css-id-in-pdb-while-loop/#post-10037779)
 * Yes, the approach is to have some CSS rules that target some special class names,
   then set up your [custom template](https://xnau.com/work/wordpress-plugins/participants-database/participants-database-documentation/pdb-templates/)
   to assign class names to the element wrapper in the loop based on the value or
   whatever.
 * If you just want to style things according to which field it is, you can do that
   just with CSS, look at the HTML source, you’ll see the wrappers have a class 
   name based on the name of the field.

Viewing 1 replies (of 1 total)

The topic ‘CSS id in pdb while loop’ is closed to new replies.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Roland Barker](https://wordpress.org/support/users/xnau/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/css-id-in-pdb-while-loop/#post-10037779)
 * Status: not resolved