Jump to content

Text Positioning


Recommended Posts

Give the div with the background image position:relative, then wrap the text in some kind of tag, like a <p>, <h(1-6)>, <span> and give that element position:absolute, then bottom:0.I.e.<style type="text/css">#container {background: url(http://www.mozilla.org/projects/xbl/xforms/layout/boxes_files/box14.jpg) no-repeat;height: 300px;position: relative;}#container span {position: absolute;bottom:0;}</style></head><body><div id="container"><span>hello<span></div>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...