XF 2.x node icon with svg

maszd

cXF BRONZE
cXF Donor
Messages
112
Likes
43
#1
Hi @BassMan
currently iam use this code to change individual node icon with svg
CSS:
.node--id42 .node-icon i { display: none; }
.node--id42 .node-icon { background-image: url('./styles/ico/west.svg'); background-repeat: no-repeat; background-position: center; }
but its show like this:

2018-01-28_135424.png

how to make icon on forum 2 size and position same with forum 1 icon?
ps. iam attach sample icon iam use.

thanks before.
regards,
maszd
 

Attachments

BassMan

Staff member
Administrator
Messages
732
Likes
383
Website
www.customizexf.com
#2
Hi, maszd,

try with this one:
CSS:
.node--id42 .node-icon i { display: none; }
.node--id42 .node-icon { background-image: url('./styles/ico/west.svg'); background-repeat: no-repeat; background-position: center; background-size: contain; }
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Top