I don't really see the point of using ::before
for this, as you could just put the logo in the HTML as an image above the h1
. Anyhow, you can easily do this with :befre by giving the h1 position: relative
so that the ::before content is positioned relative to the h1.Then you just adjust the logo's positioning. E.g.
h1 {
position: relative;
margin-top: 0;
padding-top: 130px;
}
.site-title::before {
content: "";
background: url("http://www.acchs.edu/2014b/wp-content/uploads/ACCHS_Transparent-150x146.png") no-repeat;
width: 150px;
height: 150px;
position: absolute;
top: 0;
right: 0;
margin:0;
}