Is there anyway i can use CSS or HTML to put a text object on top of a piece of a picture?

Recommended Answers

Yes, with CSS absolute positioning or layers.

Jump to Post

All 4 Replies

i want like a scrolling text box over the brown box

You want something like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Text Box</title>
<style type="text/css">
#textBox {
	overflow: scroll;


<img src="textbox.jpg alt="Text" />
<div id="textBox">Does it work? </div>


Your image was not available so I couldn't put in the proper co-ordinates for the textBox layer but I'm sure you can sort it out.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.