Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    Regular Coder
    Join Date
    Oct 2002
    Posts
    147
    Thanks
    31
    Thanked 2 Times in 2 Posts

    can i insert text useing css

    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

  • #2
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you cant, css is for "styling" your page, and setting default characteristics for attributes.

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    NL
    Posts
    421
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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/tes...ec05-12-03.htm

  • #4
    New Coder
    Join Date
    Nov 2002
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Greatttttttt, now CSS becomes corrupted so the w3c borg will start deprecating stuff in that and invent another layer of stuff to do "things".

    Neil

  • #5
    New Coder
    Join Date
    Aug 2002
    Location
    Pakistan
    Posts
    56
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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>
    To steal ideas from one person is plagiarism, to steal ideas from many is research.

  • #6
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    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".

    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.

  • #7
    New Coder
    Join Date
    Nov 2002
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #8
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    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?

  • #9
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    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.
    OracleGuy

  • #10
    Regular Coder
    Join Date
    Aug 2002
    Location
    Spain
    Posts
    420
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I could go into why I dislike the borg's approach to the web
    HEY! Borgs are half persons too
    Don't resist to assimilation. Billions of Borgs can't be wrong!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •