Jump to content

Help please with text over an image...


brown2005

Recommended Posts

It is probably because you don't have a color applied to the Text itself.
[quote]h4 {margin-top: -25px;
width: 579px;
height: 74px;
background: url(4.gif) no-repeat;}

hi i have that in the css and then

<h4><span>Go go go</span></h4>

where the image is, but the text go go go does not show up, any ideas please?[/quote]
What you are showing us here, is you have a header tag, and a span tag inside it, with text.
Here you show you are trying to put in the image.
You did the image right, so it appears, you have a width/height set to it.  The margin top, to give it some spacing, but  you didn't specify a color of the text.  By default text (in css), starts off black, by default.  If the image is black, dark in color, or conflicing colors, you won't be able to read the text because of hte image color. If it's a darker color try setting text to
color:#FFFFFF;

Do this
[code]
span.picturebackground{
margin-top:0;
width: 579px;
height: 74px;
background: url(4.gif) no-repeat;
}

h4{
size:22pt;
float:center;
}


[/code]

this is the body text now

[code]

<span class="picturebackground">

<h4> goo goo goooooo </h4>

</span>



I think that should work
[/code]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.