Jump to content

Recommended Posts

Hmm. I think you'll want to add your text to your HTML rather than your CSS. Since you've specified your image as a background image in your CSS, you might find it easier to create a neighboring div to house your text.

 

Hope this helps.

 

Diana

I've never actually used it, but AFAIK content: works with :after and :before

 

.arrowlistmenu .openheader{
background:url(/images/close.png) no-repeat 8px 2px;
}

.arrowlistmenu:after .openheader:after{
content: 'content is here';
}

 

 

I've never actually used it, but AFAIK content: works with :after and :before

 

.arrowlistmenu .openheader{
background:url(/images/close.png) no-repeat 8px 2px;
}

.arrowlistmenu:after .openheader:after{
content: 'content is here';
}

 

 

 

This works!

 

Thanks

As its been said, Why would you want to do this?

 

If your using an image just put ALT Tags on it or as someone suggested put another DIV in there with your text included in it

 

#div { position : relative; top : 8px; left:10px; }
#div-in { position : relative; top : 5px; left: 5px; }

 

That would sit a DIV inside a DIV for you

 

Why would you want to do it that way?

 

I can use  a.hover to change content without using javascript

 

 

.arrowlistmenu .openheader{
background:url(/images/close.png) no-repeat 8px 2px;
}

.arrowlistmenu:after a:hover{
background:url(/images/open.png) no-repeat 8px 2px;
}

 

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.