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. Unable to Use CSS in visual studio design for asp.net

Unable to Use CSS in visual studio design for asp.net

Scheduled Pinned Locked Moved Web Development
csharphtmlcssasp-netvisual-studio
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.
  • H Offline
    H Offline
    HatakeKaKaShi
    wrote on last edited by
    #1

    Hi guys I have use the normal of creating the css. However in the design of the asp.net, it can't detect the CSS. class style when i written in the HTML code. For example my CSS is in a css folder then css is like body{ font color:blue; } .text{ font color:black; } then in my design page where html is i import the css file href="css/filename.css" and then code in testing the text doest not work it only follow the body class but can't detect .text class KaKaShi HaTaKe

    S A S 3 Replies Last reply
    0
    • H HatakeKaKaShi

      Hi guys I have use the normal of creating the css. However in the design of the asp.net, it can't detect the CSS. class style when i written in the HTML code. For example my CSS is in a css folder then css is like body{ font color:blue; } .text{ font color:black; } then in my design page where html is i import the css file href="css/filename.css" and then code in testing the text doest not work it only follow the body class but can't detect .text class KaKaShi HaTaKe

      S Offline
      S Offline
      Shog9 0
      wrote on last edited by
      #2

      HatakeKaKaShi wrote:

      <span style="text">testing</span> the text doest not work it only follow the body class but can't detect .text class

      Perhaps then, you intended to use the class attribute rather than the style attribute... ;)

      Citizen 20.1.01

      'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'

      1 Reply Last reply
      0
      • H HatakeKaKaShi

        Hi guys I have use the normal of creating the css. However in the design of the asp.net, it can't detect the CSS. class style when i written in the HTML code. For example my CSS is in a css folder then css is like body{ font color:blue; } .text{ font color:black; } then in my design page where html is i import the css file href="css/filename.css" and then code in testing the text doest not work it only follow the body class but can't detect .text class KaKaShi HaTaKe

        A Offline
        A Offline
        Ashish Sehajpal
        wrote on last edited by
        #3

        <span class="text">testing</span> style is used to define css attributes...but a CSS class must be called using class not by style

        Ashish Sehajpal

        1 Reply Last reply
        0
        • H HatakeKaKaShi

          Hi guys I have use the normal of creating the css. However in the design of the asp.net, it can't detect the CSS. class style when i written in the HTML code. For example my CSS is in a css folder then css is like body{ font color:blue; } .text{ font color:black; } then in my design page where html is i import the css file href="css/filename.css" and then code in testing the text doest not work it only follow the body class but can't detect .text class KaKaShi HaTaKe

          S Offline
          S Offline
          Soumini Ramakrishnan
          wrote on last edited by
          #4

          try this <span class="text">testing</span>

          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