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. [newbie] Unrecognized '@' block type.

[newbie] Unrecognized '@' block type.

Scheduled Pinned Locked Moved ASP.NET
csharpcssasp-netwpfhelp
3 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.
  • J Offline
    J Offline
    jon 80
    wrote on last edited by
    #1

    Within a stylesheet I copied to an ASP.NET project, the compiler does not seem to like the first line in the stylesheet. Any idea why?

    @charset "UTF-8"; //Error 1 Unrecognized '@' block type. c:\inetpub//\wwwroot\Blog\stylesheets\common.css 1 1 http://localhost/Blog/

    /* =CALL LIBRARY */
    @import url("reset-min.css"); /* ------- Reset all CSS Styles */

    /* =GENERAL - the general styles */
    body{
    font: 62.5%/2.2em "Lucida Grande", Tahoma, Verdana, Arial, Helvetica, sans-serif;
    color: #4b4942;
    background: #fff;
    }
    ...

    Jon

    A 1 Reply Last reply
    0
    • J jon 80

      Within a stylesheet I copied to an ASP.NET project, the compiler does not seem to like the first line in the stylesheet. Any idea why?

      @charset "UTF-8"; //Error 1 Unrecognized '@' block type. c:\inetpub//\wwwroot\Blog\stylesheets\common.css 1 1 http://localhost/Blog/

      /* =CALL LIBRARY */
      @import url("reset-min.css"); /* ------- Reset all CSS Styles */

      /* =GENERAL - the general styles */
      body{
      font: 62.5%/2.2em "Lucida Grande", Tahoma, Verdana, Arial, Helvetica, sans-serif;
      color: #4b4942;
      background: #fff;
      }
      ...

      Jon

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      jon_80 wrote:

      Within a stylesheet I copied to an ASP.NET project, the compiler does not seem to like the first line in the stylesheet.

      How did you placed the stylesheet? Where did you placed it? Did you deployed the application in IIS?

      cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net

      J 1 Reply Last reply
      0
      • A Abhijit Jana

        jon_80 wrote:

        Within a stylesheet I copied to an ASP.NET project, the compiler does not seem to like the first line in the stylesheet.

        How did you placed the stylesheet? Where did you placed it? Did you deployed the application in IIS?

        cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net

        J Offline
        J Offline
        jon 80
        wrote on last edited by
        #3

        I copied the stylesheet over from a template, and, I plan to use it as a Masterpage on my website. The application is deployed within the local IIS for now.

        Jon

        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