CTXMedia Well-known member Apr 1, 2016 #1 Is there a quick CSS shortcut I could use to apply the same avatar to all users in thread / post view? Thanks, Shaun
Is there a quick CSS shortcut I could use to apply the same avatar to all users in thread / post view? Thanks, Shaun
Lukas W. Well-known member Apr 1, 2016 #2 Try the following with a quadratic image: Code: .avatar {position: relative;} .avatar::before { content: " "; position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; background: url('YOURIMAGE'); background-size: 100% } Last edited: Apr 1, 2016 Upvote 0 Downvote
Try the following with a quadratic image: Code: .avatar {position: relative;} .avatar::before { content: " "; position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; background: url('YOURIMAGE'); background-size: 100% }
CTXMedia Well-known member Apr 1, 2016 #3 Needed a slight tweak, but works a treat - thanks for the quick response - now to await the support posts from those who haven't realised what day it is !!! Upvote 0 Downvote
Needed a slight tweak, but works a treat - thanks for the quick response - now to await the support posts from those who haven't realised what day it is !!!