Title: Adding CSS with Elementor
Last modified: March 12, 2019

---

# Adding CSS with Elementor

 *  Resolved [pejooe](https://wordpress.org/support/users/pejooe/)
 * (@pejooe)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/adding-css-with-elementor/)
 * Hi marcel!
 * Thank you in advance for your help 🙂
 * I´m desigining a website using Elementor and I´m trying to Add CSS to your related
   post plugin using the CSS box in an Elementor widget, you can see here [https://prnt.sc/mwxmfy](https://prnt.sc/mwxmfy)
 * I want to add this CSS but isn´t working:
 * .elementor-custom-masonry {
    grid-column-gap: 20px; grid-row-gap: 20px; grid-
   template-columns: repeat(6,1fr); display: grid;
 *  Is there any place to add this CSS to change the related post design?
 * Thanks a lot!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadding-css-with-elementor%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * (@mpol)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/adding-css-with-elementor/#post-11312986)
 * Hi,
    I am not really sure what you are asking 🙂 You want to have a masonry styling
   for the extended related posts view? I can assume you want to add that class 
   to the list. There is currently no way to add a class to the list. I can add 
   a filter that makes it possible to add that class to the list. Would that be 
   good?
 * If you want to apply this CSS to the related list, you could add this CSS:
 *     ```
       ul.related-posts.extended_view {
           grid-column-gap: 20px;
           grid-row-gap: 20px;
           grid-template-columns: repeat(6,1fr);
           display: grid;
       }
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Adding CSS with Elementor’ is closed to new replies.

 * ![](https://ps.w.org/related/assets/icon-256x256.png?rev=2313348)
 * [Manual Related Posts](https://wordpress.org/plugins/related/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/related/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/related/)
 * [Active Topics](https://wordpress.org/support/plugin/related/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/related/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/related/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)

 * 1 reply
 * 2 participants
 * Last reply from: [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/adding-css-with-elementor/#post-11312986)
 * Status: resolved