Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Marco Junior Posted yesterday at 11:42 AM Posted yesterday at 11:42 AM Because for put a background for this class :  ipsData__item ipsData__item--discussions  You put for all block when use this specific class understand ? Then you can try it:  li.ipsData__item ipsData__item--discussions { background: url(your url img) no-repeat top center; }  On this code you apply for all element : li with class : (ipsData__item ipsData__item--discussions) Maybe you can limit this using (first-child) and last-child property
FeigelInc Posted yesterday at 11:50 AM Author Posted yesterday at 11:50 AM Thanks for your help, I guess I can go another route. Marco Junior 1
Marco Junior Posted yesterday at 11:55 AM Posted yesterday at 11:55 AM @FeigelInc Have you tried using the option to add an image in AdminCP itself? Just one question.
FeigelInc Posted yesterday at 11:57 AM Author Posted yesterday at 11:57 AM I just thought someone could take the old code and adapt it for this forum software. This is the old code: .cForumRow.ipsDataItem[data-forumid="1013"]{ background-image: url('https://i.imgur.com/GdVi7Jq.png') !important; background-size: cover !important; background-position: bottom center !important; min-height: 262px; }
Marco Junior Posted yesterday at 12:01 PM Posted yesterday at 12:01 PM (edited) @FeigelInc li.ipsData__item .ipsData__item--discussions[data-forumid="7"] { background-image: url('https://i.imgur.com/GdVi7Jq.png') !important; background-size: cover !important; background-position: bottom center !important; min-height: 262px; } This ! Edited yesterday at 12:01 PM by Marco Junior
FeigelInc Posted yesterday at 12:02 PM Author Posted yesterday at 12:02 PM Thank you so much for helping me out.
Drewfus Posted yesterday at 12:11 PM Posted yesterday at 12:11 PM all you need is this part not li.ipsdat_item .ipsData__item--discussions[data-forumid="7"] { background-image: url('https://i.imgur.com/GdVi7Jq.png') !important; background-size: cover !important; background-position: bottom center !important; min-height: 262px; } Marco Junior 1
Marco Junior Posted yesterday at 12:32 PM Posted yesterday at 12:32 PM @Drewfus Will the result be different? I don't understand! Everyone has their own way of writing styles, I have the habit of inserting the element + class after all I learned this way a long time ago 😄 Â
Recommended Posts