...

View Full Version : can i insert text useing css



andrew1234
11-26-2002, 02:56 PM
Hi

i have 20 html pages
how do i insert for example

"house"
in the style sheet

and it will display "house"
on all my html pages in the place i want

how would i code it on my css page?????

thanks

andrew

cg9com
11-26-2002, 03:55 PM
you cant, css is for "styling" your page, and setting default characteristics for attributes.

MCookie
11-26-2002, 04:24 PM
Actually, you can (sort of) do it, but it's not supported by IE yet.
Go here with Mozilla: http://www.meyerweb.com/eric/css/tests/css2/sec05-12-03.htm

Motif Webs
11-27-2002, 01:23 AM
Greatttttttt, now CSS becomes corrupted so the w3c borg will start deprecating stuff in that and invent another layer of stuff to do "things". :rolleyes: :(

Neil

mhere
11-27-2002, 04:15 PM
you can use javascript for this purpose

try this:
make a js file e.g myfile.js and write this line in it

document.write("house");

now it will display house in your page where you call it:
<script type=text/javascript src=myfile.js></script>

jkd
11-27-2002, 08:01 PM
Originally posted by Motif Webs
Greatttttttt, now CSS becomes corrupted so the w3c borg will start deprecating stuff in that and invent another layer of stuff to do "things". :rolleyes: :(

Neil

What the heck do you mean by that? Content-generation can an aspect of styling, IF not abused. Using content: and counters you can create your own list elements in XML and such.

I don't understand your outright hatred for a standards body that is trying to improve the web.

Motif Webs
11-27-2002, 09:20 PM
The key lies in your "IF not abused" statement. I'm under no illusions that the moment using CSS to generate content becomes "abused" then the w3c will try to stop it.

And frankly I don't think content is an aspect of styling at all.

I could go into why I dislike the borg's approach to the web, but I'm too tired to be bothered. Suffice to say, that I don't believe they think the web should look any more colorful than their site and even that they find a bit too loud and daring.

Neil

jkd
11-27-2002, 09:52 PM
Originally posted by Motif Webs
The key lies in your "IF not abused" statement. I'm under no illusions that the moment using CSS to generate content becomes "abused" then the w3c will try to stop it.

Just like tables for presentation? Oh wait, excuse me, tables are still in the latest recommendation.

Give me exactly one situation where something was removed from the specs solely from abuse and not a sound reason.




I could go into why I dislike the borg's approach to the web, but I'm too tired to be bothered.

Why refer to them as the Borg? Unlike the fictional collective, web developers can choose whether or not to follow standards. And even those that worship Internet Explorer can still at least respect standards as a "good thing," whether or not they reflect realistic expectations.

Major software vendors agree to standards because they recognize their value, why can't you? Microsoft employees were not forced on W3C committees, they joined out of their own free will (well, some boss at MS may have made them go, but the organization itself made the effort of joining).

I can understand not following standards, but I can't understand hating an organization simply because they establish them (based on input from the software makers and the users).

You almost seem angry that you don't have to write everything three times anymore thanks to the W3C. Taking implications from your previous reply, "invent another layer of stuff to do "things"" it almost seems you *liked* writing your script using document.layers, then document.all, and hacking the markup to bits, and praying that it renders in NS4 and IE4.

Thanks to the W3C standards, that is no longer the case. And you still don't appreciate them?

oracleguy
11-28-2002, 12:42 AM
Yeah I agree with jkd, what the W3C is doing is good. Without standards it would make things much more difficult to develop on the web. The W3C is doing what organizations like IEEE is, people from within a peticular industry get together to set standards that can benefit everyone.

Borgtex
11-28-2002, 02:08 AM
I could go into why I dislike the borg's approach to the web

HEY! Borgs are half persons too :mad:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum