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. ASP.NET
  4. Apply CSS to all classes

Apply CSS to all classes

Scheduled Pinned Locked Moved ASP.NET
cssquestion
4 Posts 4 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.
  • M Offline
    M Offline
    mehrdadc48
    wrote on last edited by
    #1

    Hi, How could I force all tags of a type (e.g. div) apply a setting with any class that was declared for them?

    Best wishes

    R Z S 3 Replies Last reply
    0
    • M mehrdadc48

      Hi, How could I force all tags of a type (e.g. div) apply a setting with any class that was declared for them?

      Best wishes

      R Offline
      R Offline
      Ranjit Viswakumar
      wrote on last edited by
      #2

      Just declare div in your style sheet-

      div
      {
      font-size: 12pt;
      }

      Good luck!

      Ranjit Viswakumar Professional Services Specialist http://hostmysite.com/?utm\_source=bb

      1 Reply Last reply
      0
      • M mehrdadc48

        Hi, How could I force all tags of a type (e.g. div) apply a setting with any class that was declared for them?

        Best wishes

        Z Offline
        Z Offline
        ZZTop777
        wrote on last edited by
        #3

        you need classes like a { ...the style elements... } table { ...the style elements... } it needs to be in the .css file if thats now what you are looking for.. just type a class in the .css .. something like: .classname { ...the style elements... } after that in the html(asp.net) code use code like:

        ... content ...

        hope it's useful modified on Sunday, February 8, 2009 4:16 PM

        1 Reply Last reply
        0
        • M mehrdadc48

          Hi, How could I force all tags of a type (e.g. div) apply a setting with any class that was declared for them?

          Best wishes

          S Offline
          S Offline
          sepel
          wrote on last edited by
          #4

          Hi mehrdad. Use some like this: div { color:#ff33cc; .... } Or you want to assign any class that contains "div" name??!! :doh:

          sepel

          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