*{
padding:0;
margin:0
}
html,body{
height:100%;
}
.background{
height:100%;
width:100%;
background-image:url('http://tombricker.smugmug.com/Travel/San-Francisco-California/i-jk2Z7D7/0/L/san-francisco-golden-gate-bridge-morning-sun-bricker-L.jpg');
background-size:cover;
background-position:center;
overflow:hidden;
}
.location{
font-family: 'Playfair Display', serif;
color:white;
font-size:100px;
padding:0;
padding-top:-20px;
}
<link href="https://fonts.googleapis.com/css?family=Playfair+Display" rel="stylesheet">
<div class='background'>
<div class='location'>San Francisco</div>
</div>
I experimented with padding-top: -23px to adjust the position of the text, but it didn't work as expected. Ultimately, I found that only using margin-top has the desired effect. My goal was to remove the space above and to the left of the word "San". When I changed the background color to grey for .location, I noticed that the empty space is caused by padding, not margin.