Jump to content

Text overlapping photo


Recommended Posts

Maybe you want to use the photo as a background image:div.class {background-image: url(image URL);background-position: 200px 50px;background-repeat: no-repeat;}****************<div class="class">Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text</div>Another thing you can do is this:<div style="position: relative"><img src="image URL" alt="Alternate text" style="position: absolute; top: 200px; left: 50px; z-index: -1;" />Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text </div>

Link to post
Share on other sites
Maybe you want to use the photo as a background image:div.class {background-image: url(image URL);background-position: 200px 50px;background-repeat: no-repeat;}****************<div class="class">Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text</div>Another thing you can do is this:<div style="position: relative"><img src="image URL" alt="Alternate text" style="position: absolute; top: 200px; left: 50px; z-index: -1;" />Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text </div>
Image in background does the job. Cheers,Kurt
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...