I have a custom element and the SASS looks like this:
.tile {
&.account-tile:before {
font-family: FontAwesome;
content: "\f003";
}
}
.tile:before {
color: rgba(255,255,255,0.5);
font-size: 50px;
}
These tiles are different sizes. I would like to position the icon in the center of the tile, but I am not sure how I can do this effectively. Can someone give me a hand?
Update 1
I changed my SASS to this:
.tile {
&.account-tile:before {
font-family: FontAwesome;
content: "\f007";
}
}
.tile:before {
color: rgba(255,255,255,0.5);
font-size: 100px;
display: block;
text-align: center;
vertical-align: middle;
background-color: pink;
height: 100%;
}
but, although it centers horizontally, it does not center vertically.