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. use of style sheet in asp.net

use of style sheet in asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpcssasp-nettutorialquestion
2 Posts 2 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.
  • S Offline
    S Offline
    sasire18
    wrote on last edited by
    #1

    hi how to call external stylesheet .css in asp.net web pages? sasi

    P 1 Reply Last reply
    0
    • S sasire18

      hi how to call external stylesheet .css in asp.net web pages? sasi

      P Offline
      P Offline
      Pankaj Kulkarni
      wrote on last edited by
      #2

      Hi, 1. Include this tag where styles.css is your stylesheet. 2. create css classes in styles.css like for button .btn { background-color:orange; color:black; } 3. Now add attribute to the button I. if it is server control then the attribute shoul be cssclass="btn" II. if it is HTML control then the attribute should be class="btn" Follow the steps which I have given. regards ,:) Pankaj Kulkarni

      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