Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. how can i get element's content by css?

how can i get element's content by css?

Scheduled Pinned Locked Moved Web Development
questioncss
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nakey_yang
    wrote on last edited by
    #1

    we can get element's style such as color and so on,by how can we get element's content by css?Recently,i found css2.1 can do so: h1:before { display: block; text-align: center; white-space: pre; content: "chapter\A hoofdstuk\A chapitre" } by IE6.0 don't support css2.1,How can i do?:confused: ok

    L U 2 Replies Last reply
    0
    • N nakey_yang

      we can get element's style such as color and so on,by how can we get element's content by css?Recently,i found css2.1 can do so: h1:before { display: block; text-align: center; white-space: pre; content: "chapter\A hoofdstuk\A chapitre" } by IE6.0 don't support css2.1,How can i do?:confused: ok

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      If the browser you are catering to doesn't support CSS2, you can't do it obviously. Aaron Eldreth TheCollective4.com My Articles While much is too strange to be believed, Nothing is too strange to have happened. - T. Hardy

      1 Reply Last reply
      0
      • N nakey_yang

        we can get element's style such as color and so on,by how can we get element's content by css?Recently,i found css2.1 can do so: h1:before { display: block; text-align: center; white-space: pre; content: "chapter\A hoofdstuk\A chapitre" } by IE6.0 don't support css2.1,How can i do?:confused: ok

        U Offline
        U Offline
        User 1200622
        wrote on last edited by
        #3

        if i am right, the latest version of Opera supports css2.1 You could use it to try out your scripts but i would suggest that you wait till it is more standardised (IE begins to support it):-D Whats the use if your code does not work on your clients PC. Any tool is only as good as you can use it!! (http://www.pascalnet.tk)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups