...

View Full Version : Image with text inside



kgjhk
03-29-2009, 10:29 PM
I'm trying to put text inside the body of an image. I've seen this done multiple times, but I have no idea where to start.

http://i698.photobucket.com/albums/vv349/jimordale/test.gif

An example of what I'm trying to do is:

http://www.warriorwebinar.com/

Can anyone help?

Thank you,

Jim

Excavator
03-29-2009, 10:43 PM
Hello kgjhk,
You can put text over a picture by making it a background image.
Have a look at this, just copy/paste the entire thing into a new .html document and view it in your browser -
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
html, body {
font: 6px "Comic Sans MS";
background: #FC6;
text-align: center;
}
* {
margin: 0;
padding: 0;
outline: none;
border: none;
}
#container {
width: 293px;
height: 320px;
margin: 30px auto;
border: 1px solid #000; /*this line kills the UNcollapsing margin*/
background: url(http://i698.photobucket.com/albums/vv349/jimordale/test.gif);
}
#content {
width: 283px;
height: 100px;
margin: 100px auto 0;
}
</style>
</head>
<body>
<div id="container">
<div id="content">
<p>
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna
aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no
sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo
duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
</p>
<!--end content--></div>
<!--end container--></div>
</body>
</html>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum