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. CSS vs Web Control Buttons

CSS vs Web Control Buttons

Scheduled Pinned Locked Moved ASP.NET
htmlcssvisual-studiodiscussion
4 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.
  • C Offline
    C Offline
    caheo
    wrote on last edited by
    #1

    I would like to know if there is a way to apply CSS on a web control button. I've been lookin up for some examples but seems HTML controls are more favored. Anybody here can tutor me quickly for mouse over, mouse click on a web control buton, also feel free to give me opinions for why web control are not using much CSS

    S P 2 Replies Last reply
    0
    • C caheo

      I would like to know if there is a way to apply CSS on a web control button. I've been lookin up for some examples but seems HTML controls are more favored. Anybody here can tutor me quickly for mouse over, mouse click on a web control buton, also feel free to give me opinions for why web control are not using much CSS

      S Offline
      S Offline
      Spanky3
      wrote on last edited by
      #2

      Presume you are using VS.net just drag the button onto the form go to properties and set the cssclass to be applied to the button eg: myButton and in the css class just set .myButton

      1 Reply Last reply
      0
      • C caheo

        I would like to know if there is a way to apply CSS on a web control button. I've been lookin up for some examples but seems HTML controls are more favored. Anybody here can tutor me quickly for mouse over, mouse click on a web control buton, also feel free to give me opinions for why web control are not using much CSS

        P Offline
        P Offline
        Paul Watson
        wrote on last edited by
        #3

        Use the CSSClass property to assign a CSS class. The best way though is to assign it vai your CSS file e.g. fieldset input { style here}. As for the why, MS is not keen on other peoples standards and web controls have a lot of flashy but bad-practice features. To the firsttime user all the handy style properties are useful and easier than using CSS (even though technically they do output CSS). regards, Paul Watson Bluegrass South Africa Christopher Duncan quoted: "...that would require my explaining Einstein's Fear of Relatives" Crikey! ain't life grand? Einstein says...

        C 1 Reply Last reply
        0
        • P Paul Watson

          Use the CSSClass property to assign a CSS class. The best way though is to assign it vai your CSS file e.g. fieldset input { style here}. As for the why, MS is not keen on other peoples standards and web controls have a lot of flashy but bad-practice features. To the firsttime user all the handy style properties are useful and easier than using CSS (even though technically they do output CSS). regards, Paul Watson Bluegrass South Africa Christopher Duncan quoted: "...that would require my explaining Einstein's Fear of Relatives" Crikey! ain't life grand? Einstein says...

          C Offline
          C Offline
          caheo
          wrote on last edited by
          #4

          Thank you for all the responds. I know how to do CSS for a HTML button. Do you have any tutorials or samples with web control. I'm focusing on effects genereated by the mouseover, mouseclick

          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