468,236 Members | 1,997 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,236 developers. It's quick & easy.

Add some text in front of an object

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
2 2818
*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
*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.

Similar topics

5 posts views Thread by garethdjames | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.