By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,766 Members | 1,265 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,766 IT Pros & Developers. It's quick & easy.

Add some text in front of an object

P: n/a
Hello,

I want to add some text in front of an object. I want to use the
":before" tag for that. I've tried to do this like the following:

object[classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"],
embed[type="application/x-shockwave-flash"] + *:before {
content:"test";
font-size: 1.2em;
color: #000;
border: 1px solid #000;
font-weight: bold;
display: block;
padding: 10px;
}

This doesn't work.

what am I doing wrong?

Thank you very much in advance

CU

Manuel
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
*Manuel Reimer* <mr*****@despammed.com>:

I want to add some text in front of an object. I want to use the
":before" tag for that.
It's not a tag, it's a pseudo-element. There are no tags in CSS, and most of
the time people mean something different in HTML terms too, when saying
"tag".
object[classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"],
embed[type="application/x-shockwave-flash"] + *:before {


Did you mean:

object[classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"]:before,
embed[type="application/x-shockwave-flash"]:before {

Should work in CSS2 browsers, IE neither being nor claimed to be one.

--
"Right way turning, Listen we are learning.
Head's full of noise, Chicken's got no choice.
Heads are rollin', Chicken blood is stolen.
The rest of the chicken wants a picke-nicken" Guano Apes - We use the Pain
Jul 20 '05 #2

P: n/a
*Manuel Reimer* <mr*****@despammed.com>:

I want to add some text in front of an object. I want to use the
":before" tag for that.
It's not a tag, it's a pseudo-element. There are no tags in CSS, and most of
the time people mean something different in HTML terms too, when saying
"tag".
object[classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"],
embed[type="application/x-shockwave-flash"] + *:before {


Did you mean:

object[classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"]:before,
embed[type="application/x-shockwave-flash"]:before {

Should work in CSS2 browsers, IE neither being nor claimed to be one.

--
"Right way turning, Listen we are learning.
Head's full of noise, Chicken's got no choice.
Heads are rollin', Chicken blood is stolen.
The rest of the chicken wants a picke-nicken" Guano Apes - We use the Pain
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.