1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Adding Text with CSS

Discussion in 'CSS' started by steveb, Jul 10, 2006.

  1. #1
    Hi all,

    I was just wondering if it is possible to add text to all of your webpages using an external css.

    For example, if I want to add a copyright notice (ie...copyright 2006) at the bottom of every page, what can I do?
    SEMrush
    I have a website built entirely of html pages, but I would like the ability to edit a single page instead of all of them.

    Regards,
    Steve
     
    steveb, Jul 10, 2006 IP
    SEMrush
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,477
    Likes Received:
    361
    Best Answers:
    28
    Trophy Points:
    335
    #2
    kk5st, Jul 10, 2006 IP
  3. NoobieDoobieDo

    NoobieDoobieDo Peon

    Messages:
    1,456
    Likes Received:
    53
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi,

    As the above poster said SSI is what you're looking for, it's very handy ! To the best of my knowledge CSS does not have the ability to insert text into your page, it can only style the existing text.
     
    NoobieDoobieDo, Jul 11, 2006 IP
  4. AdamSee

    AdamSee Well-Known Member

    Messages:
    422
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    135
    #4
    You can do it with psuedo elements, but they aren't supported in IE and it's not the best way to do it anyways.

    #footer:after{
    content: "copyright 2006";
    }


    inserts the content after the footer.
     
    AdamSee, Jul 11, 2006 IP
  5. kk5st

    kk5st Prominent Member

    Messages:
    3,477
    Likes Received:
    361
    Best Answers:
    28
    Trophy Points:
    335
    #5
    It's amazing the number of things we could do if not for IE. And, because of IE, we end up forgetting we have these properties available to us For some examples, see the demo link in the sig. While there, look at the form demo. Neither page is dumbed down to acommodate IE's stupidity. View in your normal, modern browser. Then view in IE.

    cheers,

    gary
     
    kk5st, Jul 11, 2006 IP
  6. klown

    klown Peon

    Messages:
    2,093
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    0
    #6
    that is one tasty form.
     
    klown, Jul 11, 2006 IP
  7. AdamSee

    AdamSee Well-Known Member

    Messages:
    422
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    135
    #7
    Your page is broken in internet explorer, fix it! - ha ha.

    Can't wait for the day that we can forget about IE/5&6 - that's probably around 5 years off though.

    Like the form :)
     
    AdamSee, Jul 12, 2006 IP
  8. policey

    policey Greenhorn

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #8
    it's been 4 years, and were still supporting IE6...
     
    policey, May 11, 2010 IP
  9. sinsearch

    sinsearch Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Are style sheets for style and pages for content? Or am I being a purist here?
     
    sinsearch, May 11, 2010 IP
  10. murrydan

    murrydan Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Yeah, but sometimes you are faced with a web app that creates the html and all you have access to is the styling, so you have to get creative with adding more content to the output.
     
    murrydan, Jun 1, 2010 IP
  11. kk5st

    kk5st Prominent Member

    Messages:
    3,477
    Likes Received:
    361
    Best Answers:
    28
    Trophy Points:
    335
    #11
    The document structure belongs under the purview of the front-end guy, so he should be able to add, or shuffle, or subtract anything he needs. If, however, for some strange misalignment of authority and responsibility, the mid-tier or back-tier guy is outputting the html, the only thing to do is to submit a bug requesting the required changes. It is unfortunate that so many project managers get this so wrong. :shrug:

    cheers,

    gary
     
    kk5st, Jun 2, 2010 IP
  12. wd_2k6

    wd_2k6 Peon

    Messages:
    1,742
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Do you still have the form demo up somewhere Gary it seemed interesting?
     
    wd_2k6, Jun 4, 2010 IP
  13. kk5st

    kk5st Prominent Member

    Messages:
    3,477
    Likes Received:
    361
    Best Answers:
    28
    Trophy Points:
    335
    #13
    Ah, yes. That host went belly up, taking my site with it. I remodeled, and you can now find the demo at Form Layout Using CSS. The javascript validation was left off the new incarnation.

    cheers,

    gary
     
    kk5st, Jun 5, 2010 IP
  14. aeroz1

    aeroz1 Active Member

    Messages:
    492
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #14
    You could try using IE8.js to fix content, which might do the trick. If not, then there's nothing you can do besides background-image's with text
     
    aeroz1, Jun 14, 2010 IP