I want to center a graphic in a css pseudo class but it doesn’t work. I tried the following:
#login .login:before {
content: url('../images/lglp.png');
display: inline-block !important;
margin: 0 auto !important;
}
Has anyone an idea?
You can see it here in live!
If i understand correct what you want, you have to give the
widthand change thedisplayfrominline-blocktoblockwidthhas to be the image width