473,407 Members | 2,546 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

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 2975
*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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: John | last post by:
I just learned that it is possible to grab a text file from another site and display the data on my own site, however when I display the data it does not format it correctly. Can anyone please...
4
by: Lauren Quantrell | last post by:
I have created the following trigger: CREATE TRIGGER ON OutputTable FOR INSERT AS Declare @filename nvarchar(35) Declare @filecontents nvarchar(2000) Declare @strcmdshell varchar(150)
2
by: ehm | last post by:
I am working on creating an editable grid (for use in adding, deleting, and editing rows back to an Oracle database). I have a JSP that posts back to a servlet, which in turns posts to a WebLogic...
5
by: garethdjames | last post by:
A while ago I read news about ASP.Net 2.0 having support for the Front Controller model, In all the reports I have read and in the latest beta download I can see no implicit support for this...
2
by: JohnR | last post by:
Let's say I have an MDI parent form with a textbox. If I create an MDI child form and, at runtime, move the MDI child window over the textbox on the MDI parent, the textbox appears in front of the...
3
by: dmbuso | last post by:
I have a money field defined in a SQL Server 05 database with a value of 49.50. Also, it displays in SQL Server as 49.5000. I have a form in VB.NET 2005 and I'm using the new MaskedTextBox control...
8
by: JohnC | last post by:
RE: Access 2003 My application has been split and the front end runs on client PCs with the back end on a LAN file server. Also I have an updater routine that copies an updated client from the...
3
by: Andy | last post by:
Hello, I have the following situation: Thread A is allocating a dataset, doing some low-level calculations and storing a pointer to the dataset in a std::list via push_back. Thread B should...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.