Stuck in html

They have: 41 posts

Joined: Feb 2004

Hey guys,

I need your help. I have just had this new site design, but I have had some problems.

I need to put text over the top of some of the images, such as title bars, side bars..etc, and I normally can do it, but for some reason, when I try to put the text on top of one of the images, it either writes the text above or below the image.

Any help please???

HostNifty
Quality shared and reseller UK hosting
http://www.hostnifty.co.uk

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

How are you trying to do this? Are you using the images as backgrounds or what? Are you using tables or CSS?

It would help to give us a URL so we can see exactly what the problem is.

They have: 41 posts

Joined: Feb 2004

Well, I haven't got my domain transferred yet, but here's my temp URL...

http://216.67.252.162/~wapture/

If you can see, I need to put text over the right side panel, to show two of my hostings - yet I cannot do this for some reason or another.

I also need text over the title bars, and next to the server picture below the header.

HostNifty
Quality shared and reseller UK hosting
http://www.hostnifty.co.uk

They have: 5,633 posts

Joined: Jan 1970

Let me guess your trying to do something like this: <img src="bla.img">Look im writing on a picture!</img>' Am I right?

The Webmistress's picture

She has: 5,586 posts

Joined: Feb 2001

You will need to make those images backgrounds to the table cells so that you can then put the text into the cell.

They have: 41 posts

Joined: Feb 2004

well, can you give me some help, tell me what to do... I've never felt more un-experienced..lol

He has: 1,380 posts

Joined: Feb 2002

use css:

td.hosting1 {
background-image: url('www.mesay.com/img.gif');
background-position: fixed;
}

sumeiko's picture

He has: 147 posts

Joined: Jun 2004

You could just use a simple alt tag:

<img src="image url" alt="This text is on the picture!">
This is a simple HTML tag. I think it is supported by most browsers. Sticking out tongue

The most beautiful thing we can experience is the mysterious. It is the source of all true art and science.
- Albert Einstein

Busy's picture

He has: 6,151 posts

Joined: May 2001

alt tags disappear on some browsers once the image has loaded but you can use title="same text as alt" as well which stays put. This will only put the text in the image, not on.

They have: 10 posts

Joined: Jun 2004

Another way would be to position the text with css. It is easy and fast.

Nick

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.