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;
Link to comment
Share on other sites


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]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.