Skip to content

Instantly share code, notes, and snippets.

@eddiejhong
Last active December 18, 2015 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eddiejhong/5833652 to your computer and use it in GitHub Desktop.
Save eddiejhong/5833652 to your computer and use it in GitHub Desktop.
In order to overlay text or images without creating whitespace, the text/images to be overlayed must be contained in a wrapper that has a defined height.
//For example
.school-directory-container{
height: 250px;
}
.school-directory-copy{
position:relative;
top:-242px;
font-size: 144%;
width: 253px;
margin-left:25px;
font-weight:bold;
}
img.state-to-dir-button{
position:relative;
top:-232px;
margin-left:25px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment