Re: Adding TEXT over an Image
| From: | Mattias Thorslund | Date: | Thu, 14 Oct 2004 02:32:37 +0000 |
| Subject: | Re: Adding TEXT over an Image | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-199454@lists.php.net to get a copy of this message | ||
With PHP, use GD to print your text on a copy of your image.. Look at the image functions in the manual:
http://us2.php.net/manual/en/ref.image.php
- Or -
With CSS, use "background-image" to load the image behind your text:
#header {
background: #90a090;
background-image: url('/header.jpg');
}
<h1 id="header">Administration Mode</h1>
/Mattias
GH wrote:
Good Evening: I would like to know if it is possible to add text over an image. If so can someone please help me with it? Here is what I would like to do. I currently have a "random masthead" that I pull from my database (the location of the image is stored there with other info such as credits and description) I would like to overlay on top of the Masthead the words "Administration Mode" without me having to create a duplicate copy of the original mastheads and save them again... I would like to be able to just have a bit of code that would add on top. I ask this because I have too many masthead options right now that it would be infeasable for me to create duplicates of each one to just add Administration Mode as an overlay. Thank You. Gary I am new to PHP and currently am runing PHP 4-- More views at http://www.thorslund.us